We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c347849 commit 7c9b6c9Copy full SHA for 7c9b6c9
1 file changed
lib/WebpackOptionsApply.js
@@ -486,7 +486,13 @@ class WebpackOptionsApply extends OptionsApply {
486
new HttpUriPlugin(httpOptions).apply(compiler);
487
}
488
489
- if (options.experiments.deferImport || options.experiments.sourceImport) {
+ if (
490
+ !(
491
+ /** @type {typeof JavascriptParser & { __importPhasesExtended?: true }} */
492
+ (JavascriptParser).__importPhasesExtended
493
+ ) &&
494
+ (options.experiments.deferImport || options.experiments.sourceImport)
495
+ ) {
496
const importPhases = require("acorn-import-phases");
497
498
JavascriptParser.extend(importPhases({ source: true, defer: true }));
0 commit comments