We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 generated by the Terser plugin have an incorrect URL 0 in the sources array.
0
sources
A test case:
_config.js:
_config.js
import lume from "lume/mod.js"; import terser from "lume/plugins/terser.js"; const site = lume() .use(terser({ sourceMap: true })); export default site;
index.njk:
index.njk
<script src="/foo.js"></script>
foo.js:
foo.js
console.log("Test!");
That results the following source map:
foo.js.map:
foo.js.map
{"version":3,"sources":["0"],"names":["console","log"],"mappings":"AAAAA,QAAQC,IAAI","file":"/foo.js"}
Should have foo.js instead of 0.
Edit: The issue originally covered the PostCSS plugin too, but I think its source maps are correct after all.
The text was updated successfully, but these errors were encountered:
ddcef29
No branches or pull requests
Source maps generated by the Terser plugin have an incorrect URL
0
in thesources
array.A test case:
_config.js
:index.njk
:foo.js
:That results the following source map:
foo.js.map
:Should have
foo.js
instead of0
.Edit: The issue originally covered the PostCSS plugin too, but I think its source maps are correct after all.
The text was updated successfully, but these errors were encountered: