Skip to content

Commit

Permalink
chore: Modify babel config of nodejs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 1, 2021
1 parent 7b83aed commit af1303d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/tsbb/src/babel/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ export default (filePath: string, options: ITransformOptions, targets: ITargets)
],
require.resolve('@babel/preset-typescript'),
],
plugins: [require.resolve('babel-plugin-add-module-exports')],
plugins: [
require.resolve('babel-plugin-add-module-exports'),
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
],
};
}
return new Promise<ITransformResult>((resolve: (value?: ITransformResult) => ITransformResult | any, reject) => {
Expand Down

0 comments on commit af1303d

Please sign in to comment.