Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps #26

Open
Lovor01 opened this issue Nov 16, 2021 · 1 comment
Open

Source maps #26

Lovor01 opened this issue Nov 16, 2021 · 1 comment

Comments

@Lovor01
Copy link

Lovor01 commented Nov 16, 2021

I am developing some front-end scripts in my projects, but it is hard to debug them, since webpack is not producing source maps. Apparently, __scripts.11ty.js processes and packages front end scripts, but source maps are not generated, I presume because of output file system being memory?

I tried setting devtool config property to inline-source-map, where webpack inlines source map as data-uri, but this does not work for me, at least in Firefox developer edition 95.

@Lovor01
Copy link
Author

Lovor01 commented Nov 17, 2021

Source maps started working with inline-source-map - it was some browser quirk perhaps. However, this method of source maps production is not recommended by webpack. I wonder, if default preferred eval method has advantages and if it has, how to enable this to actually produce maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant