You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a web worker imports a CommonJS module with a self reference dependency, webpack throws Error: Self-reference dependency has unused export name: This should not happen.
Bug report
What is the current behavior?
When a web worker imports a CommonJS module with a self reference dependency, webpack throws
Error: Self-reference dependency has unused export name: This should not happen
.This happens when
usedExports
is set to"global"
.I think this is related:
#12646 / #12648
It seems like that fix works when
usedExports
is not set to"global"
, but it doesn't work whenusedExports: "global"
is set.If the current behavior is a bug, please provide the steps to reproduce.
Repro: https://github.com/pgoldberg/webpack-self-reference-dependency-worker-bug
What is the expected behavior?
Webpack should not throw an error
Other relevant information:
webpack version: 5.91.0
Node.js version: any
Operating System: any
Additional tools:
The text was updated successfully, but these errors were encountered: