Skip to content

Commit 8228f23

Browse files
committed
fix: support babel-7 and babel-loader-8
1 parent 956dc69 commit 8228f23

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ class WebpackBaseBuilder extends Config {
593593

594594
createBabelLoader() {
595595
const loaderName = 'babel-loader';
596-
const options = { forceEnv: process.env.BABEL_ENV };
596+
const options = process.env.BABEL_ENV ? { forceEnv: process.env.BABEL_ENV } : {};
597597
const compile = this.config.compile || {};
598598
const configCacheOptions = this.utils.isObject(compile.cache) ? compile.cache : {};
599599
const cacheOptions = this.merge(options, configCacheOptions);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easywebpack",
3-
"version": "4.9.2",
3+
"version": "4.9.3",
44
"description": "基于 Webpack 的前端构建工程化解决方案",
55
"keywords": [
66
"webpack",

0 commit comments

Comments
 (0)