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

grunt: skip babel transpile for core-js #1466

Merged
merged 3 commits into from Sep 28, 2020

Conversation

myfreeer
Copy link
Contributor

Summary

Previously grunt build would transpile the output of browserify to transpile all dependencies, but this would make some dependencies, such as core-js, unexpectedly transpiled. Also, this way of transpiling would create source maps only targeting the browserify output instead of original source, and makes the final dist/exceljs.js larger than expected.

  • Fix Symbol.toString() related errors on IE11 caused by transpiling core-js
  • Reduce size for compiled dist
  • Keep original source maps before browserify

Test plan

Existing ci builds and manually tested in browser.

screenshot of source map

source_map

Previously grunt build would transpile the output of browserify to transpile all dependencies, but this would make some dependencies, such as core-js, unexpectedly transpiled. Also, this way of transpiling would create source maps only targeting the browserify output instead of original source, and makes the final `dist/exceljs.js` larger than expected.

* Fix Symbol.toString() related errors on IE11 caused by transpiling core-js
* Reduce size for compiled dist
* Keep original source maps before browserify
Copy link
Member

@alubbe alubbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks!

@alubbe alubbe merged commit 224d063 into exceljs:master Sep 28, 2020
@myfreeer myfreeer deleted the grunt-transpile branch October 3, 2020 03:25
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.

None yet

2 participants