Skip to content

Commit

Permalink
Prevent Webpack from resolving import.meta.url statements during bu…
Browse files Browse the repository at this point in the history
…ilding (issue 19145)

This fixes a Node.js-specific regression from PR 18959.
  • Loading branch information
Snuffleupagus committed Dec 2, 2024
1 parent d448953 commit a2b889b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ function createWebpackConfig(
},
devtool: enableSourceMaps ? "source-map" : undefined,
module: {
parser: {
javascript: {
importMeta: false,
},
},
rules: [
{
test: /\.[mc]?js$/,
Expand Down

0 comments on commit a2b889b

Please sign in to comment.