We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a6359 commit 704f0f6Copy full SHA for 704f0f6
babel.config.js
@@ -10,5 +10,11 @@ module.exports = {
10
],
11
require.resolve('@babel/preset-flow'),
12
13
- plugins: [require.resolve('@babel/plugin-transform-strict-mode')],
+ plugins: [
14
+ require.resolve('@babel/plugin-transform-strict-mode'),
15
+ [
16
+ require.resolve('@babel/plugin-transform-modules-commonjs'),
17
+ { lazy: true },
18
+ ],
19
20
};
package.json
@@ -15,6 +15,7 @@
},
"dependencies": {
"@babel/core": "^7.0.0",
+ "@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/plugin-transform-strict-mode": "^7.0.0",
"@babel/preset-env": "^7.0.0",
21
"@babel/preset-flow": "^7.0.0",
0 commit comments