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
code from source-map-loader is possibly ending up in the bundle #22998
Yes, the previous version in which this bug was not present was: v12.x
Description
Producing a production bundle with enabled source maps causes the source-map-loader package itself to appear in the bundle. I think this is rather confusing since source-map-loader is a webpack loader which should only be used at build time.
I'm not sure though if some code of source-map-loader actually ends up in the bundle or the source maps are just wrongly pointing to it. Interestingly source-map-loader is not part of the source maps anymore with optimization turned off.
🔬 Minimal Reproduction
npx @angular/cli new example
cd example/
ng build --source-map
🔥 Exception or Error
The main.hash.js.map file has a reference to "./node_modules/source-map-loader/dist/cjs.js".
Running ng build with disabled optimization (ng build --source-map --optimization=false) will produce source maps which don't include a reference to the source-map-loader package.
Activity
fix(@angular-devkit/build-angular): update `@ampproject/remapping` to…
alan-agius4 commentedon May 2, 2022
Closed via #23063
chrisguttandin commentedon May 4, 2022
Thanks a lot for addressing this, @alan-agius4. 🙏
angular-automatic-lock-bot commentedon Jun 4, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.