Breaks relative ES6 module paths
salomvary opened this issue · 4 comments
salomvary commented
Given
index.html
<script type="module">import main from './main.js'</script>
main.js
function main () {}
and the following command:
buildProduction --nocompress --outroot dist index.html
the resulting dist/index.html
looks like this:
<script type=module>import main from'static/main.08791ac947.js'</script>
The problem: static/main.08791ac947.js
is invalid as "bare" import specifiers aren't currently supported. It should be ./static/main.08791ac947.js
. See also here.
Using assetgraph-builder@6.5.1.
papandreou commented
Thanks for the comprehensive report! Fixed in 6.6.1.
papandreou commented
Oh, make that 6.6.2 :)
salomvary commented
Awesome, thanks!
papandreou commented
Further fixes coming up in assetgraph/assetgraph@97b394d