-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove babel-plugin-transform-async-to-promises and use plugin-transf…
…orm-regenerator to transpile async functions instead to avoid transpilation bugs of the async-to-promises library - Add useBuiltIns option to automatically add the regeneratorRuntime to the bundle if it is needed. - Keep exclusion of transform-regenerator, as it already configured for use in the plugins - Add (already installed) core-js@2 explicitly to dependencies, and specify the corejs version in the preset-env config to satisfy a warning when building with tsdx - The warning claims that core-js should be installed in the matching version and specified explicitly when using the "useBuiltIns" option, because the default version of 2.x is "likely to change" - Remove transform-regenerator package and merging logic, and use it with the defaults from preset-env - Replace deprecated @babel/polyfill with direct dependencies to regenerator-runtime and (already installed) core-js - Add regenerator-runtime and core-js to external, so the polyfills are included in the bundle - Always transform core-js to esm, to fix its internal dependencies not being found by the rollup bundler in the external() resolution.
- Loading branch information
Showing
4 changed files
with
17 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters