Repository navigation
Update terser to v4.1.0 - #17035
Merged
Merged
Update terser to v4.1.0#17035
Conversation
sbc100
force-pushed
the
update_terser
branch
2 times, most recently
from
May 24, 2022 16:26
456779d to
70a4f9f
Compare
kripken
approved these changes
May 24, 2022
sbc100
commented
May 24, 2022
| // Terser suboptimality! Should produce: | ||
| // test('var i=new Image;i.onload=()=>{}', 'var i=new Image;i.onload=()=>{}'); | ||
| // but instead produces: | ||
| test('var i=new Image;i.onload=()=>{}', 'var i=new Image;i.onload=(()=>{});'); |
Collaborator
Author
There was a problem hiding this comment.
@kripken, What do you think about this part of the change? Is it still useful? What is it now testing?
Member
There was a problem hiding this comment.
I think it's nice to verify that codegen is optimal there. I guess ideally this could just be in upstream terser, but since it's been an issue in the past, and it has almost no cost for us to test here, I'd keep it.
Collaborator
Author
There was a problem hiding this comment.
OK, I'll a quick comment maybe
Also write some instructions for how to update doing forward. This change allows us to move forward with things like usage of BigInt literals in our JS library code (e.g. `42n`).
sbc100
enabled auto-merge (squash)
May 24, 2022 17:42
sbc100
added a commit
that referenced
this pull request
May 26, 2022
When updating terser to 4.1.0 in #17035 I inadvertently introduced a dependency on the node source-map module. Rebuilding after patching our terser fork removed this: emscripten-core/terser@b3ace3b This happens to be available during testing because it one of our dev decpendencies but we not include it in our end-user/production dependencies. This kind of error is hard to find since the `node_modules` for our test setup is the same as the node_modules for emscripten itself. It migth be worth attempting to tease them appart if this kind of thing ever shows up again.
sbc100
added a commit
that referenced
this pull request
May 26, 2022
When updating terser to 4.1.0 in #17035 I inadvertently introduced a dependency on the node source-map module. Rebuilding after patching our terser fork removed this: emscripten-core/terser@b3ace3b This happens to be available during testing because it one of our dev decpendencies but we not include it in our end-user/production dependencies. This kind of error is hard to find since the `node_modules` for our test setup is the same as the node_modules for emscripten itself. It migth be worth attempting to tease them appart if this kind of thing ever shows up again.
sbc100
added a commit
that referenced
this pull request
May 26, 2022
When updating terser to 4.1.0 in #17035 I inadvertently introduced a dependency on the node source-map module. Rebuilding after patching our terser fork removed this: emscripten-core/terser@b3ace3b This happens to be available during testing because it one of our dev decpendencies but we not include it in our end-user/production dependencies. This kind of error is hard to find since the `node_modules` for our test setup is the same as the node_modules for emscripten itself. It migth be worth attempting to tease them appart if this kind of thing ever shows up again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also write some instructions for how to update doing forward.
This change allows us to move forward with things like usage
of BigInt literals in our JS library code (e.g.
42n).