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

Cannot split a chunk that has already been edited #2676

Closed
Rich-Harris opened this issue Feb 3, 2019 · 2 comments
Closed

Cannot split a chunk that has already been edited #2676

Rich-Harris opened this issue Feb 3, 2019 · 2 comments

Comments

@Rich-Harris
Copy link
Contributor

  • Rollup Version: 1.1.2
  • Operating System (or Browser): MacOS
  • Node Version: 11.6.0

How Do We Reproduce?

Expected Behavior

It bundles

Actual Behavior

It doesn't bundle. Instead, we get the same error as in #2660

[!] Error: Cannot split a chunk that has already been edited (0:7 – "import('./b.js')")

@Rich-Harris
Copy link
Contributor Author

Rich-Harris commented Feb 3, 2019

Rich-Harris added a commit that referenced this issue Feb 3, 2019
lukastaegert pushed a commit that referenced this issue Feb 14, 2019
lukastaegert pushed a commit that referenced this issue Feb 15, 2019
lukastaegert added a commit that referenced this issue Feb 15, 2019
lukastaegert pushed a commit that referenced this issue Feb 16, 2019
lukastaegert pushed a commit that referenced this issue Feb 17, 2019
lukastaegert pushed a commit that referenced this issue Feb 17, 2019
…rts (#2677)

* failing test for #2676

* skip final resolution if dynamic import has already been rendered

* add expected test output

* only mark dynamic import as replaced if it was completely overwritten

* * only render final resolutions for cross-chunk dynamic imports
* do not create facades for inlined dynamic imports

* Get rid of AppVeyor Node 8 test to speed up CI
@lukastaegert
Copy link
Member

Resolved via #2677

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

No branches or pull requests

2 participants