You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 urlhere.
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.
Could you also release a new version of ember-cli-uglify? The latest release on the registry v2.1.0 depends on broccoli-uglify-sourcemap@^2.1.1. I see that the PR to update this to v3 was merged but hasn't been released yet.
@astronomersiva thanks for reminding me. I'll release once ember-cli/ember-cli-terser#102 is merged in as well, to prevent us from having to do yet another major version bump at the end of the month.
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 generatedsourceMappingURL
will be,//# sourceMappingURL=https://my-vpn/app.map
. Implementing this should be as simple as prepending the value ofpublicPath
tourl
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 theurl
option to terser.Further Reading
The text was updated successfully, but these errors were encountered: