Skip to content

Commit a4eb840

Browse files
Merge pull request #19149 from Snuffleupagus/issue-19145
Prevent Webpack from resolving `import.meta.url` statements during building (issue 19145)
2 parents f0a8a79 + a2b889b commit a4eb840

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)