mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Prevent Webpack from resolving import.meta.url
statements during building (issue 19145)
This fixes a Node.js-specific regression from PR 18959.
This commit is contained in:
parent
d448953166
commit
a2b889bb9a
1 changed files with 5 additions and 0 deletions
|
@ -380,6 +380,11 @@ function createWebpackConfig(
|
|||
},
|
||||
devtool: enableSourceMaps ? "source-map" : undefined,
|
||||
module: {
|
||||
parser: {
|
||||
javascript: {
|
||||
importMeta: false,
|
||||
},
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
test: /\.[mc]?js$/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue