Skip to content

Commit

Permalink
fix: Fix not requiring helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 3, 2020
1 parent b569471 commit 64a33dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/babel/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export default (filePath: string, options: ITransformOptions, targets: ITargets)
presets: [
[require.resolve('@tsbb/babel-preset-tsbb'), {
modules: 'cjs',
transformRuntime: {}
transformRuntime: {
version: require('@babel/helpers/package.json').version
}
}]
],
...babelOptions,
Expand Down

0 comments on commit 64a33dd

Please sign in to comment.