Skip to content

Commit

Permalink
refactor(father-build): correct babel runtime for rollup mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed May 24, 2022
1 parent 532e7dd commit 5d616a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@babel/runtime": "0.1.0"
"@babel/runtime": "7.10.4"
}
}
1 change: 1 addition & 0 deletions packages/father-build/src/getRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function(opts: IGetRollupConfigOpts): RollupOptions[] {
typescript: true,
runtimeHelpers,
nodeVersion,
cwd,
}).opts),
// ref: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
babelHelpers: (runtimeHelpers ? 'runtime' : 'bundled') as RollupBabelInputPluginOptions['babelHelpers'],
Expand Down

0 comments on commit 5d616a4

Please sign in to comment.