Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Remove modules babelrc option

Jason Millercd4fd075199c
diff --git a/.babelrc b/.babelrc
index 4a40638f..a9d2d2e6 100644
--- a/.babelrc
+++ b/.babelrc
@@ -5,7 +5,7 @@
{
"loose": true,
"uglify": true,
- "modules": "commonjs",
+ "modules": false,
"targets": {
"browsers": "last 2 versions"
},
diff --git a/webpack.config.js b/webpack.config.js
index bcc0bffc..8fc5bb28 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -43,7 +43,6 @@ module.exports = function(_, env) {
let babelRc = parseJson(readFile('.babelrc'));
babelRc.babelrc = false;
- if (isProd) babelRc.presets[0][1].modules = false;
let manifest = parseJson(readFile('./src/manifest.json'));