From 81106dbced684322e8b02c192be22f8b3b1abe0c Mon Sep 17 00:00:00 2001 From: Gerald Yeo Date: Sun, 11 Mar 2018 12:44:20 +0800 Subject: [PATCH] fix: bableOpts plugins assignment --- lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build.js b/lib/build.js index 307a06a4..c747f988 100644 --- a/lib/build.js +++ b/lib/build.js @@ -9,7 +9,7 @@ function webpackConfig(dir, additionalConfig) { var babelOpts = {cacheDirectory: true}; if (!fs.existsSync(path.join(process.cwd(), '.babelrc'))) { babelOpts.presets = ["es2015"]; - babelOptsplugins = [ + babelOpts.plugins = [ "transform-class-properties", "transform-object-assign", "transform-object-rest-spread"