File tree 2 files changed +1
-10
lines changed
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" @babel/preset-env" ],
2
+ "presets" : [[ " @babel/preset-env" , { "modules" : " auto " }] ],
3
3
"plugins" : [
4
4
[" module-resolver" , { "root" : [" ./src" ] } ],
5
5
[" babel-plugin-inline-import" , {
Original file line number Diff line number Diff line change @@ -18,16 +18,7 @@ const debugBuild = mode === 'development';
18
18
// Note that we don't support .babelrc in parent folders
19
19
var babelrc = fs . readFileSync ( path . resolve ( __dirname , '.babelrc' ) ) ;
20
20
var babelConf = JSON . parse ( babelrc ) ;
21
- var newPresets = [ ] ;
22
- for ( var preset of babelConf . presets ) {
23
- if ( ! Array . isArray ( preset ) ) {
24
- preset = [ preset ] ;
25
- }
26
- preset . push ( { modules : false } ) ;
27
- newPresets . push ( preset ) ;
28
- }
29
21
30
- babelConf . presets = newPresets ;
31
22
babelConf . babelrc = false ; // disabel babelrc reading, as we've just done it
32
23
const replacementPluginConf = babelConf . plugins . find ( plugin => Array . isArray ( plugin ) && plugin [ 0 ] === 'minify-replace' ) ;
33
24
replacementPluginConf [ 1 ] . replacements . find ( decl => decl . identifierName === '__DEBUG__' ) . replacement . value = debugBuild ;
You can’t perform that action at this time.
0 commit comments