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

DEV: Update terser #19109

Merged
merged 2 commits into from Nov 24, 2022
Merged

DEV: Update terser #19109

merged 2 commits into from Nov 24, 2022

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Nov 19, 2022

The decodedMap prop comes from terser/terser#1190

This also exposes a new decodedMap property on the result object. Decoded maps are free to create (it's a shallow clone of the GenMapping instance), and passing them to @jridgewell/trace-mapping is copy-free. With Babel recently adding a decodedMap field, a dev could pass from the Babel transpilation to Terser without any added memory use for sourcemaps.

The `decodedMap` prop comes from terser/terser#1190

> This also exposes a new `decodedMap` property on the result object. Decoded maps are free to create (it's a shallow clone of the `GenMapping` instance), and passing them to `@jridgewell/trace-mapping` is copy-free. With Babel [recently](babel/babel#14497) adding a `decodedMap` field, a dev could pass from the Babel transpilation to Terser without any added memory use for sourcemaps.
# Conflicts:
#	app/assets/javascripts/yarn.lock
@CvX CvX merged commit 57a573e into main Nov 24, 2022
@CvX CvX deleted the a-terser branch November 24, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants