Skip to content

Commit be59413

Browse files
committedSep 11, 2021
fix(tsbb): Babel config add add-module-exports.
1 parent 1cb6ee8 commit be59413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/tsbb/src/babel/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export function transform(filename: string, options?: TransformHandleOptions): P
3737
sourceFileName,
3838
plugins: [
3939
require('@babel/plugin-syntax-dynamic-import').default,
40-
// require('babel-plugin-add-module-exports'),
4140
require('babel-plugin-transform-typescript-metadata').default,
4241
/**
4342
* Use the legacy (stage 1) decorators syntax and behavior.
@@ -80,6 +79,7 @@ export function transform(filename: string, options?: TransformHandleOptions): P
8079
(transformRuntime as any).useESModules = !semver.gte(runtimeVersion, '7.13.0');
8180
}
8281
babelOptions.plugins.push(require('@babel/plugin-transform-modules-commonjs').default);
82+
babelOptions.plugins.push(require('babel-plugin-add-module-exports'));
8383
babelOptions.plugins.push([require('@babel/plugin-transform-runtime').default, transformRuntime]);
8484
babelOptions.plugins.push([
8585
require('babel-plugin-transform-remove-imports').default,

0 commit comments

Comments
 (0)
Please sign in to comment.