Skip to content

Commit

Permalink
chore(deps): update dependency @tsbb/babel-preset-tsbb to v1.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 25, 2021
1 parent 349a74f commit e98a8f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tsbb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@jest/types": "26.6.2",
"@tsbb/babel-preset-tsbb": "1.13.0",
"@tsbb/babel-preset-tsbb": "1.14.1",
"@types/graceful-fs": "4.1.4",
"@types/node": "13.13.9",
"babel-jest": "26.6.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/tsbb/src/babel/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default (filePath: string, options: ITransformOptions, targets: ITargets)
if (options.envName === 'esm') {
presetOptions.modules = false;
presetOptions.transformRuntime = {
// [@babel/plugin-transform-runtime] The 'useESModules' option is not necessary when using
// a @babel/runtime version >= 7.13.0 and not using the 'absoluteRuntime' option,
// because it automatically detects the necessary module format.
useESModules: true,
version: require('@babel/helpers/package.json').version,
} as any;
Expand Down

0 comments on commit e98a8f6

Please sign in to comment.