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

feat: add sourcemaps for dist builds #744

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jahed
Copy link
Contributor

@jahed jahed commented Feb 6, 2021

Fixes #743

Notes

I had to update the lockfile as a new dependency was needed and the lockfile format was quite old. npm ci was not working completely as grunt-saucelabs is a GitHub reference so it's ignored by that command. npm@6 uses a different format and the ~ versioning is no longer recommended, ^ is. The first two commits reflect these changes. If you'd rather I create a separate PR for this, or have a way to avoid changing the lock file, let me know.

For the source maps, Browserify's source maps are embedded into the file, so I had to use grunt-extract-sourcemap to extract them to a map file to avoid bloat. There is also an issue with grunt-browserify (jmreidy/grunt-browserify#362) where banners might conflict with sourcemaps but I haven't confirmed it myself. Considering grunt-browserify hasn't been updated for 2 years, (and a lot of Grunt plugins in general), I'm not sure what can be done other than moving away from Grunt.

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.

Generate Source Maps for dist files
1 participant