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 introduces a new flag for
--module-mode
which disables bundling and runs the modules directly in StarlingMonkey.This is especially useful for debugging workflows where getting a nice stack of the exact JS sources is very much needed, and I actually just implemented this myself exactly to make a debugging case easier.
In module mode, a new
--bundle
flag is also support to still bundle in module mode if desired, which then exactly corresponds to the previous top-level await support which is also then implemented as such and that flag is now deprecated and removed from docs for using this technique instead.--bundle
can be kept along on a 3.x timeframe, but should also then get removed on the 4.x path.Taking module mode out of experimental is dependent on the StarlingMonkey issues bytecodealliance/StarlingMonkey#168 and bytecodealliance/StarlingMonkey#15.