-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module rewrite fix: support dynamic import in module and non module s…
…cripts (#112) * module rewrite fix: (fix for issue found in webrecorder/wombat#116) - support dynamic 'import()' in module or non-module with different base url (presence of import doesn't imply script is in module) - simplify isModule check logic - if script not in module, rewrite dynamic import to '__wb_rewrite_import_('', url), no base resolution - if script is in module, rewrite dynamic import to '__wb_rewrite_import_(import.meta.url, ...)' to pass curr script url as base url - remove duplicate rewrite call! bump to 2.15.4
- Loading branch information
Showing
6 changed files
with
26 additions
and
28 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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