Repository navigation
[test] Add initial vite bundler testing. NFC - #23421
Merged
Merged
Conversation
dschuff
reviewed
Jan 15, 2025
This is similar to what we already do for webpack. By having such tests here the emscripten repo we can better defend ourselves against future breakages that effect vite users (e.g. emscripten-core#22394). Fixes: emscripten-core#23048
brendandahl
reviewed
Jan 16, 2025
| def test_vite(self): | ||
| shutil.copytree(test_file('vite'), 'vite') | ||
| with common.chdir('vite'): | ||
| self.compile_btest('hello_world.c', ['-sEXPORT_ES6', '-sEXIT_RUNTIME', '-sMODULARIZE', '-o', 'hello.mjs']) |
Collaborator
There was a problem hiding this comment.
Do we want to use MODULARIZE=instance here since that's probably more similar to what vite users are using?
Collaborator
Author
There was a problem hiding this comment.
This is just the first of (hopefully many) different tests. I'm not sure I'd want to use -sMODULARIZE=instance for this initial smoketest since its still experimental.
Collaborator
Author
There was a problem hiding this comment.
The next test I plan to add is one that uses threads so we can confirm that #22394 really is fixed.
sbc100
enabled auto-merge (squash)
January 16, 2025 17:59
kripken
approved these changes
Jan 16, 2025
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.
This is similar to what we already do for webpack.
By having such tests here the emscripten repo we can better defend ourselves against future breakages that effect vite users (e.g. #22394).
Fixes: #23048