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
asset_hash plugin removes relative path specifier, breaking ES modules #2516
Comments
Hi @marcoms 👋🏼 not sure if this is going to help with your problem or it's even related, but just in case ... Couple of days ago I raised this issue: #2530. The point is that the current JavaScript minifier (only in v4 branch, in master is already changed to Terser) relies on the Uglifier gem, which doesn't support well ES6 syntax. So maybe your problem is somehow related? This only applies if you are using the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@Stale keep open |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello @marcoms 👋🏼 Could you please try running your site under current
We pushed some fixes in the last months, so maybe this is gone. |
Expected behavior and actual behavior
ES modules don't allow module specifiers that don't have a slash as shown below:
This comes from my JS bundle which begins with:
But gets replaced with this by asset_hash:
It's important the
./
is preserved as shown by the above error.Additional information
The text was updated successfully, but these errors were encountered: