A minimal reproduction of source maps not generating when using NextFederationPlugin
-
cd host-app-next-mp-8
-
npm install
-
npm run build
-
npm run export
-
deploy 'out' to a static host with security headers that don't allow 'unsafe-eval' (see example https://d214kpu06u9q9h.cloudfront.net/)
-
console errors:
share.esm.js:91 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' at new Function () at 1026 (share.esm.js:91:22) at webpack_require (bootstrap:24:23) at 9083 (index.cjs.js:3:15) at webpack_require (bootstrap:24:23) at 6093 (main-2296636e816d6003.js:1:111) at webpack_require (bootstrap:24:23) at main-2296636e816d6003.js:1:193475 at r (jsonp chunk loading:75:28) at main-2296636e816d6003.js:1:51