You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want this bundle work even in older projects.
I tried unsuccessfully even legacy mode and downgrade somehow my version...
For sample i want use in SPFX and vue projects which using webpack4.
what help me when i directly import pdf.js into those projects was: #13200 (comment)
This discussion was converted from issue #17894 on April 06, 2024 06:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to export bundle.js from a projectA [webpack5] to a projectB [webpack4]
Configuration:
I created a code in which I tried this functionality:
https://github.com/necik11/pdfJsPlayGround
Steps to reproduce the problem:
What is the expected behavior?
I want this bundle work even in older projects.
I tried unsuccessfully even legacy mode and downgrade somehow my version...
For sample i want use in SPFX and vue projects which using webpack4.
what help me when i directly import pdf.js into those projects was:
#13200 (comment)
but when i use webpack for bundle and then load production mode i have this pdf:
https://pdftron.s3.amazonaws.com/downloads/pl/Chart_.Vector.pdf
without colors:
vs
dev mode:
I will be glad for all the advice and tips, thank you
Beta Was this translation helpful? Give feedback.
All reactions