Skip to content

fix: improve error for manualChunks' modules that are resolved as an external module#5050

Merged
lukastaegert merged 8 commits into
rollup:masterfrom
TrickyPi:fix-4633
Jul 6, 2023
Merged

fix: improve error for manualChunks' modules that are resolved as an external module#5050
lukastaegert merged 8 commits into
rollup:masterfrom
TrickyPi:fix-4633

Conversation

@TrickyPi
Copy link
Copy Markdown
Member

@TrickyPi TrickyPi commented Jul 1, 2023

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

resolves #4633

Description

extend loadEntryModule and addAdditionalModules functions to know if it is a load for the manualChunks' module, then we can throw a correct error based on flag isLoadForManualChunks.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2023 4:44am

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 1, 2023

Codecov Report

Merging #5050 (d904803) into master (c355392) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head d904803 differs from pull request most recent head 366f29f. Consider uploading reports for the commit 366f29f to get more accurate results

@@           Coverage Diff           @@
##           master    #5050   +/-   ##
=======================================
  Coverage   98.96%   98.97%           
=======================================
  Files         226      226           
  Lines        8348     8357    +9     
  Branches     2290     2293    +3     
=======================================
+ Hits         8262     8271    +9     
  Misses         31       31           
  Partials       55       55           
Impacted Files Coverage Δ
src/Bundle.ts 100.00% <100.00%> (ø)
src/ModuleLoader.ts 99.58% <100.00%> (+<0.01%) ⬆️
src/utils/logs.ts 99.01% <100.00%> (+0.01%) ⬆️

Comment thread src/utils/logs.ts Outdated
Copy link
Copy Markdown
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just two minor stylistic issues I found, otherwise the code looks fine!

Comment thread src/utils/logs.ts Outdated
Comment thread src/utils/logs.ts Outdated
Comment thread src/ModuleLoader.ts Outdated
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
@lukastaegert lukastaegert enabled auto-merge July 6, 2023 05:02
@lukastaegert lukastaegert added this pull request to the merge queue Jul 6, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 6, 2023
@TrickyPi TrickyPi changed the title fix: improve error for manualChunks' modules that are resolved as an external modules by plugins fix: improve error for manualChunks' modules that are resolved as an external modules Jul 6, 2023
@TrickyPi TrickyPi changed the title fix: improve error for manualChunks' modules that are resolved as an external modules fix: improve error for manualChunks' modules that are resolved as an external module Jul 6, 2023
@lukastaegert lukastaegert added this pull request to the merge queue Jul 6, 2023
Merged via the queue into rollup:master with commit 5d8e2e3 Jul 6, 2023
@rollup-bot
Copy link
Copy Markdown
Collaborator

This PR has been released as part of rollup@3.26.2. You can test it via npm install rollup.

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

Successfully merging this pull request may close these issues.

Improve error when manualChunks includes external modules

3 participants