Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rewriting map files #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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