shadow-cljs icon indicating copy to clipboard operation
shadow-cljs copied to clipboard

Ability to set .map extension for source maps to something else

Open fatihict opened this issue 4 years ago • 5 comments

Source maps are currently configured to append the .map extension to files. Can this be configured to use something besides .map?

fatihict avatar Dec 06 '19 15:12 fatihict

No. Why would it be?

thheller avatar Dec 06 '19 17:12 thheller

I'm developing a Jira plugin and I have little influence in the way files are served. For some reason files ending with the .map are blocked by the server. Other plugin developers using webpack have worked around this issue by changing the source map extension.

fatihict avatar Dec 06 '19 18:12 fatihict

Would it be enough if this only worked in release builds? I assume in development you have control over the web server?

thheller avatar Dec 06 '19 22:12 thheller

2.8.81 lets you set :compiler-options {:source-map-suffix ".foo"} which defaults to ".map" for release builds.

thheller avatar Dec 06 '19 22:12 thheller

That's great! However I have little control over the web server. I did ask around to see if I can influence the web server to handle .map files normally during development or if this is a bug. Would it be possible to have this same option for "watch" as well?

fatihict avatar Dec 07 '19 11:12 fatihict