chore: cherry-pick goodies from #4235

Co-authored-by: Sébastien Chopin <seb@chopin.io>
This commit is contained in:
pooya parsa 2019-03-17 00:52:01 +03:30
parent d6b505aa50
commit 37cd24c261
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,8 @@
"distributions/*" "distributions/*"
], ],
"scripts": { "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": "yarn clean:build && yarn clean:examples && yarn clean:test",
"clean:build": "rimraf distributions/*/dist packages/*/dist", "clean:build": "rimraf distributions/*/dist packages/*/dist",
"clean:examples": "rimraf examples/*/dist examples/*/.nuxt", "clean:examples": "rimraf examples/*/dist examples/*/.nuxt",

View File

@ -96,8 +96,8 @@ export class WebpackBundler {
} }
// Configure compilers // Configure compilers
this.compilers = compilersOptions.map((compilersOption) => { this.compilers = compilersOptions.map((compilerOptions) => {
const compiler = webpack(compilersOption) const compiler = webpack(compilerOptions)
// In dev, write files in memory FS // In dev, write files in memory FS
if (options.dev) { if (options.dev) {