1
0
Fork 0
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:
Jonas Jenwald 2024-12-02 13:38:22 +01:00
parent d448953166
commit a2b889bb9a

View file

@ -380,6 +380,11 @@ function createWebpackConfig(
},
devtool: enableSourceMaps ? "source-map" : undefined,
module: {
parser: {
javascript: {
importMeta: false,
},
},
rules: [
{
test: /\.[mc]?js$/,