Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does babel-polyfills have any strategy to prevent creating cycles? #195

Open
nyngwang opened this issue Jan 19, 2024 · 0 comments
Open

Does babel-polyfills have any strategy to prevent creating cycles? #195

nyngwang opened this issue Jan 19, 2024 · 0 comments

Comments

@nyngwang
Copy link

From babel/babel#8754:

Compilation of node_modules is becoming more common as more packages are publish as ES6.

This is causing problems in two ways:

  • transform-runtime can potentially insert references to core-js into core-js itself
  • transform-runtime can potentially insert references to @babel/runtime-corejs2 into core-js itself
  • transform-runtime can potentially insert references to @babel/runtime-corejs2 into itself, causing dependency cycles
  • And similar with useBuiltins: 'usage' transforming core-js.
    [...]

I think the same question needs to be discussed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant