webpack supports a variety of options for source maps, which we could bring to the Ember community as well. Two of them that I feel can be useful are:
publicPath: The value will be prepended to the value of sourceMappingURL. So, for a value of https://my-vpn/, the generated sourceMappingURL will be, //# sourceMappingURL=https://my-vpn/app.map. Implementing this should be as simple as prepending the value of publicPath to url here.
hidden-source-map: Using this option will prevent the reference to the source map from being added to the minified asset. The source maps can be separately uploaded to a private server and then loaded using the "Add Source Map..." option in Chrome. To implement this, we would just have to stop passing the url option to terser.
Further Reading
webpack supports a variety of options for source maps, which we could bring to the Ember community as well. Two of them that I feel can be useful are:
publicPath: The value will be prepended to the value ofsourceMappingURL. So, for a value ofhttps://my-vpn/, the generatedsourceMappingURLwill be,//# sourceMappingURL=https://my-vpn/app.map. Implementing this should be as simple as prepending the value ofpublicPathtourlhere.hidden-source-map: Using this option will prevent the reference to the source map from being added to the minified asset. The source maps can be separately uploaded to a private server and then loaded using the "Add Source Map..." option in Chrome. To implement this, we would just have to stop passing theurloption to terser.Further Reading