Skip to content

Commit 785839e

Browse files
authored
fix(command): Inline Babel helpers with build (#54)
When the helpers were not inlined they depended on `@babel/runtime` which was fine for this package, but for the packages uses `@benmvp/cli` they would also depend on `@babel/runtime`, which is not desired. So now those helpers are just inlined and duplicated. For now if a lib wants to use `async` they'll need to manually include the `regeneratorRuntime`.
1 parent bd733b3 commit 785839e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/build/babel-config-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getBabelConfig = (moduleType) => ({
1818
'@babel/plugin-proposal-object-rest-spread',
1919
['@babel/plugin-transform-runtime', {
2020
corejs: false,
21-
helpers: true,
21+
helpers: false,
2222
regenerator: true,
2323

2424
// NOTE: May need to point this to a specific one, see

0 commit comments

Comments
 (0)