From 37cd24c261588b543e88cac9eacbbed480e1f6aa Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Sun, 17 Mar 2019 00:52:01 +0330 Subject: [PATCH] chore: cherry-pick goodies from #4235 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Chopin --- package.json | 3 ++- packages/webpack/src/builder.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 97a037f577..fc3ea6caf3 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "distributions/*" ], "scripts": { - "build": "yarn clean && node -r esm ./scripts/package", + "build": "yarn clean && yarn pkg", + "pkg": "node -r esm ./scripts/package", "clean": "yarn clean:build && yarn clean:examples && yarn clean:test", "clean:build": "rimraf distributions/*/dist packages/*/dist", "clean:examples": "rimraf examples/*/dist examples/*/.nuxt", diff --git a/packages/webpack/src/builder.js b/packages/webpack/src/builder.js index 5b684772b4..7f7251a9a8 100644 --- a/packages/webpack/src/builder.js +++ b/packages/webpack/src/builder.js @@ -96,8 +96,8 @@ export class WebpackBundler { } // Configure compilers - this.compilers = compilersOptions.map((compilersOption) => { - const compiler = webpack(compilersOption) + this.compilers = compilersOptions.map((compilerOptions) => { + const compiler = webpack(compilerOptions) // In dev, write files in memory FS if (options.dev) {