Skip to content

Conversation

@bendemboski
Copy link

Map files have a file attribute that contains the filename of the minified Javascript file they describe. Everything else in the map file is a description of the source code, and shouldn't get re-written. This commit adds custom processing for map files so that if .map is included in replaceExtensions the correct processing will occur.

I did not add .map to the default replaceExtensions as that is more of an invasive change from a compatibility standpoint than I really want to make without more demand for this functionality and/or confirmation that it works in use cases other than mine.

Map files have a `file` attribute that contains the filename of the minified Javascript file they describe. Everything else in the map file is a description of the source code, and shouldn't get re-written. This commit adds custom processing for map files so that if `.map` is included in `replaceExtensions` the correct processing will occur.

I did not add `.map` to the default `replaceExtensions` as that is more of an invasive change from a compatibility standpoint than I really want to make without more demand for this functionality and/or confirmation that it works in use cases other than mine.
@bendemboski
Copy link
Author

cc @rwjblue per our slack discussion -- let me know what you think

@bendemboski
Copy link
Author

Oh, just noticed this will fit well with the direction of #52 (although they will have to be merged at some point).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant