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
Create a DLL manifest containing cjs modules, example relay-runtime
Create a bundle using strictExportPresence: true and DLLReferencePlugin using the manifest created in step 1
Build fails with the below error
$ npm run build
> [email protected] build
> rspack build -c ./config/rspack.dll.config.js && rspack build -c ./config/rspack.dllRef.config.js
Rspack compiled successfully in 141 ms
ERROR in ./src/entry.js
× ESModulesLinkingError: export 'readInlineData' (imported as 'readInlineData') was not found in 'relay-runtime' (module has no exports)
╭─[3:12]
1 │ import { readInlineData } from 'relay-runtime';
2 │
3 │ console.log(readInlineData)
· ──────────────
╰────
Rspack compiled with 1 error in 13 ms
The text was updated successfully, but these errors were encountered:
System Info
Details
Rspack warns (or errors with
strictExportPresence: true
) when referencing a cjs module from a DLL manifest.Reproduce link
https://github.com/robrichard/rspack-dll-test
Reproduce Steps
relay-runtime
strictExportPresence: true
and DLLReferencePlugin using the manifest created in step 1The text was updated successfully, but these errors were encountered: