File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ export function transform(filename: string, options?: TransformHandleOptions): P
37
37
sourceFileName,
38
38
plugins : [
39
39
require ( '@babel/plugin-syntax-dynamic-import' ) . default ,
40
- require ( '@babel/plugin-transform-modules-commonjs' ) . default ,
41
40
// require('babel-plugin-add-module-exports'),
42
41
require ( 'babel-plugin-transform-typescript-metadata' ) . default ,
43
42
/**
@@ -80,6 +79,7 @@ export function transform(filename: string, options?: TransformHandleOptions): P
80
79
*/
81
80
( transformRuntime as any ) . useESModules = ! semver . gte ( runtimeVersion , '7.13.0' ) ;
82
81
}
82
+ babelOptions . plugins . push ( require ( '@babel/plugin-transform-modules-commonjs' ) . default ) ;
83
83
babelOptions . plugins . push ( [ require ( '@babel/plugin-transform-runtime' ) . default , transformRuntime ] ) ;
84
84
babelOptions . plugins . push ( [
85
85
require ( 'babel-plugin-transform-remove-imports' ) . default ,
You can’t perform that action at this time.
0 commit comments