[Bug]: Invalid code generated when using DLL plugins and mode: development
or optimization.moduleIds: named
#9076
Labels
bug
Something isn't working
System Info
Details
When generating a DLL bundle using rspack.DLLPlugin, with
mode: development
oroptimization.moduleIds: named
, a DLL manifest is created with module ids using the relative path of the file name.Creating an app bundle using
rspack.DLLReferencePlugin
, referencing this manifest generates invalid JS code. The module ID is an unquoted string which cannot be parsed by the JS engine.Example:
Reproduce link
https://github.com/robrichard/rspack-dll-test
Reproduce Steps
Build with dll and dll reference plugin:
npm run build
Open
public/index.html
in a browser and see in the console:Generated code:
Note unquoted string reference
(./node_modules/relay-runtime/index.js);
The text was updated successfully, but these errors were encountered: