-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
I'm using esbuild for js bundling, command:
esbuild app/assets/javascripts/*.* --bundle --outdir=app/assets/builds --sourcemap
Then sourcemap comment is added to builds/application.js
:
//# sourceMappingURL=application.js.map
But after process by assets pipeline, it becomes:
//# sourceMappingURL=application.js.map;
It add a ;
at the end and break the sourcemap config.
I found it's caused by https://github.com/rails/sprockets/blob/cddf9fb841eece80276a1ccaee1e018a356547a0/lib/sprockets/utils.rb#L100 , and there is a related fixed. rails/sprockets#515
But looks like this fix not work for js bundle from external.
I don't know the internal of asset pipeline very well. How can I make the sourcemap from esbuild work?
Metadata
Metadata
Assignees
Labels
No labels