Merge pull request #19149 from Snuffleupagus/issue-19145
Prevent Webpack from resolving `import.meta.url` statements during building (issue 19145)
This commit is contained in:
commit
a4eb8407c1
@ -380,6 +380,11 @@ function createWebpackConfig(
|
||||
},
|
||||
devtool: enableSourceMaps ? "source-map" : undefined,
|
||||
module: {
|
||||
parser: {
|
||||
javascript: {
|
||||
importMeta: false,
|
||||
},
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
test: /\.[mc]?js$/,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user