Skip to content

Commit

Permalink
fix: Unenable 'loose' transformations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 20, 2021
1 parent b3984d4 commit edb18fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tsbb/src/babel/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default (filePath: string, options: ITransformOptions, targets: ITargets)
babelOptions = {
presets: [
[require.resolve('@babel/preset-env'), {
targets: { node: '10' },
loose: false,
targets: { node: '8' },
}],
require.resolve('@babel/preset-typescript'),
],
Expand Down

0 comments on commit edb18fd

Please sign in to comment.