Repository navigation
Remove source-map dependency from terser bundle - #17067
Conversation
| using the following steps: | ||
|
|
||
| $ CI=1 npm run build | ||
| $ npx rollup -c |
There was a problem hiding this comment.
Intentional change? What is the difference?
There was a problem hiding this comment.
Yeah, its the same thing.. I just noticed this works better and was simpler for me to deal with when iterating.
There was a problem hiding this comment.
(and I can then remove the comment below)
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.
|
Looks like this affected binaryen CI, https://github.com/WebAssembly/binaryen/runs/6613053782?check_suite_focus=true which I guess will be fixed by this. |
|
Yes, this is an odd case where the only effect users are those that are not setup to run emscripten tests... so by definition it doesn't get caught be our testing process :( |
|
The solution is probably to have the tests run emscripten in some kind of virtual sandbox that is separate from the test running environment... but I'm hoping this kind of issue is rare enough not to warrant building that. |
|
Yeah... I guess it makes sense that emsdk CI would find it as that really tests the entire user flow. I agree it might not be worth doing anything more there, as such breakage will be 100% caught before a release. |
|
Its also notable that users who happen to have |
This happened once before already and was fixed #17067. This change was generated by re-bundling terser after this change: emscripten-core/terser@692a6de
This happened once before already and was fixed #17067. This change was generated by re-bundling terser after this change: emscripten-core/terser@692a6de
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_modulesfor our testsetup 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.