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

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

Merged
merged 8 commits into from
Jul 6, 2023

Conversation

TrickyPi
Copy link
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

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

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%) ⬆️

src/utils/logs.ts Outdated Show resolved Hide resolved
Copy link
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!

src/utils/logs.ts Outdated Show resolved Hide resolved
src/utils/logs.ts Outdated Show resolved Hide resolved
src/ModuleLoader.ts Outdated Show resolved Hide resolved
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
@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
20 checks passed
@rollup-bot
Copy link
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