From a2b889bb9ad1ac7041bbc633b60d62e85429b7e9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 2 Dec 2024 13:38:22 +0100 Subject: [PATCH] Prevent Webpack from resolving `import.meta.url` statements during building (issue 19145) This fixes a Node.js-specific regression from PR 18959. --- gulpfile.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulpfile.mjs b/gulpfile.mjs index 539e199cff6d3..7862c2a5bd57d 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -380,6 +380,11 @@ function createWebpackConfig( }, devtool: enableSourceMaps ? "source-map" : undefined, module: { + parser: { + javascript: { + importMeta: false, + }, + }, rules: [ { test: /\.[mc]?js$/,