Skip to content

Commit a2b889b

Browse files
committed
Prevent Webpack from resolving import.meta.url statements during building (issue 19145)
This fixes a Node.js-specific regression from PR 18959.
1 parent d448953 commit a2b889b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gulpfile.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ function createWebpackConfig(
380380
},
381381
devtool: enableSourceMaps ? "source-map" : undefined,
382382
module: {
383+
parser: {
384+
javascript: {
385+
importMeta: false,
386+
},
387+
},
383388
rules: [
384389
{
385390
test: /\.[mc]?js$/,

0 commit comments

Comments
 (0)