Commit 2cd89c3
Fix Babel transpile for EXPORT_ES6 by using sourceType module
When EXPORT_ES6 is enabled, makeNodeImport() generates top-level
await import() expressions. Babel's transpile step was configured
with sourceType 'script', which cannot parse top-level await.
This caused test_node_prefix_transpile to fail at compilation.
Use sourceType 'module' when EXPORT_ES6 is active so Babel can
correctly parse and transpile the ESM output.1 parent 581bbaa commit 2cd89c3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
0 commit comments