Search in the node_modules\pdfjs-dist\legacy\build\pdf.min.mjs file for pdfjsLib string.
What is the expected behavior? (add screenshot)
It should be found and exposed on the window object when loaded in the browser.
What went wrong? (add screenshot)
The pdfjsLib is not exposed anymore. It is exposed instead on all other build options:
node_modules\pdfjs-dist\legacy\build\pdf.mjs
node_modules\pdfjs-dist\build\pdf.min.mjs
node_modules\pdfjs-dist\build\pdf.mjs
I can see that the tweakWebpackOutput function in the gulpfile expects the string ",__webpack_exports__={};" to exist in the minified file. But looking at the published minified file it looks like this var __webpack_exports__={};. Is this a webpack issue?
Configuration:
Steps to reproduce the problem:
node_modules\pdfjs-dist\legacy\build\pdf.min.mjs
file forpdfjsLib
string.What is the expected behavior? (add screenshot) It should be found and exposed on the window object when loaded in the browser.
What went wrong? (add screenshot) The
pdfjsLib
is not exposed anymore. It is exposed instead on all other build options:node_modules\pdfjs-dist\legacy\build\pdf.mjs
node_modules\pdfjs-dist\build\pdf.min.mjs
node_modules\pdfjs-dist\build\pdf.mjs
I can see that the
tweakWebpackOutput
function in the gulpfile expects the string",__webpack_exports__={};"
to exist in the minified file. But looking at the published minified file it looks like thisvar __webpack_exports__={};
. Is this a webpack issue?