Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
feat(webpack): Add --display-optimization-bailout and use jsm-to-esmo…
Browse files Browse the repository at this point in the history
…dules (#3932)

Fix Bug 1426520 - Run webpack with --display-optimization-bailout
  • Loading branch information
k88hudson authored and Mardak committed Jan 12, 2018
1 parent 583985c commit 1374b5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"babel-core": "6.26.0",
"babel-loader": "7.1.2",
"babel-plugin-jsm-to-commonjs": "0.2.0",
"babel-plugin-jsm-to-esmodules": "0.2.2",
"babel-plugin-transform-async-to-module-method": "6.24.1",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.0",
"babel-preset-react": "6.24.1",
Expand Down Expand Up @@ -88,7 +88,7 @@
"buildmc": "npm-run-all buildmc:*",
"prebuildmc": "npm run cleanmc",
"buildmc:locales": "pontoon-to-json --src locales --dest system-addon/data",
"buildmc:webpack": "webpack --config webpack.system-addon.config.js",
"buildmc:webpack": "webpack --config webpack.system-addon.config.js --display-optimization-bailout",
"buildmc:css": "node-sass system-addon/content-src/styles -o system-addon/css",
"buildmc:html": "rimraf system-addon/prerendered && webpack --config webpack.prerender.config.js && node ./bin/render-activity-stream-html.js",
"buildmc:copy": "cpx \"system-addon/**/{,.}*\" $npm_package_config_mc_dir/browser/extensions/activity-stream",
Expand Down
2 changes: 1 addition & 1 deletion webpack.system-addon.config.js
Expand Up @@ -25,7 +25,7 @@ module.exports = {
exclude: /node_modules/,
loader: "babel-loader",
// Converts .jsm files into common-js modules
options: {plugins: [["jsm-to-commonjs", {basePath: resourcePathRegEx, replace: true}]]}
options: {plugins: [["jsm-to-esmodules", {basePath: resourcePathRegEx, replace: true}]]}
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion yamscripts.yml
Expand Up @@ -18,7 +18,7 @@ scripts:
buildmc:
pre: =>cleanmc
locales: pontoon-to-json --src locales --dest system-addon/data
webpack: webpack --config webpack.system-addon.config.js
webpack: webpack --config webpack.system-addon.config.js --display-optimization-bailout
css: node-sass system-addon/content-src/styles -o system-addon/css
html: rimraf system-addon/prerendered && webpack --config webpack.prerender.config.js && node ./bin/render-activity-stream-html.js
# Copy over all of the system-addon directory
Expand Down

0 comments on commit 1374b5f

Please sign in to comment.