mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
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
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