GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — fix: process async entries with forceSideEffects in global mode (#18315) by samarthsinh2660 · Pull Request #20251 · webpack/webpack Conversation
Contributor
Summary Fixes #18315. When In that mode, CommonJS modules that contain self-reference dependencies (handled by
This change ensures that async entries are always analyzed with What kind of change does this PR introduce? fix Did you add tests for your changes? Yes. Added a regression test case:
It reproduces the failure by importing a CommonJS module with a self-reference dependency from within a worker when Does this PR introduce a breaking change? No. If relevant, what needs to be documented once your changes are merged or what have you already documented? No documentation changes.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…ack#18315) When usedExports is set to 'global', async entries (workers) were not being processed with forceSideEffects: true, causing CommonJS modules with self-reference dependencies to throw 'Self-reference dependency has unused export name' errors. This fix ensures async entries are always processed with forceSideEffects regardless of global mode, using undefined (global runtime) when global mode is enabled.
|
There was an error while loading. Please reload this page.
🦋 Changeset detectedLatest commit: eb2f352 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
CodSpeed Performance ReportMerging #20251 will not alter performanceComparing Summary
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is packaged and the instant preview is available (557582a). Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@557582a
yarn add -D webpack@https://pkg.pr.new/webpack@557582a
pnpm add -D webpack@https://pkg.pr.new/webpack@557582a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Self-reference dependency has unused export name when imported inside of a web worker
There was an error while loading. Please reload this page.