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
{{ message }}
Repository navigation
Commit ec300ae
Browse filesBrowse the repository at this point in the historyBrowse files
fix(esm): escape external requests in star reexports (#22078)
* fix(esm): escape external requests in star reexports
* fix(esm): escape line separators in generated module specifiers
Use `toJsStringLiteral` instead of `JSON.stringify` for the requests
interpolated into generated `import` and `export * from` statements, so
U+2028/U+2029 are escaped rather than left raw in the emitted source.
* test(library): assert the escaped specifiers outside the bundle
`__non_webpack_require__` in an ESM entry makes webpack emit
`import { createRequire } from "node:module"`, which Node 10 cannot link,
so read the emitted library bundle from `afterExecute` instead.
---------
Co-authored-by: Alexander Akait <[email protected]>
0 commit comments