-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade pdfjs to version 4 -- On hold till better browser support exists #18
Conversation
} | ||
overrides: [{ | ||
files: ["*.ts", "*.tsx"], | ||
parserOptions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its hard to tell whats going on in this file since so much was moved around but previously we were setting parserOptions
for the whole linting project and now its only in this overrides
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically since we have a couple regular .js files and our entire linting architecture was set up to only lint typescript, I moved the ts specific stuff to overrides
so that we could lint the whole project including files that weren't in the tsconfig files (including js files in the tsconfig can lead to some messy issues)
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be relative
@@ -8,9 +8,9 @@ | |||
"jsx": "react", | |||
"lib": [ | |||
"dom", | |||
"es2015" | |||
"ESNext" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you confirm that pdfjs is building for this ES level?
Upgrades pdfjs-dist to version 4. This includes building to
ESNext
instead ofES2015
and removing theCommonJS
build entirely. Also includes the following changes for development (shouldn't impact library usage):npm run serve-example
and navigating to http://localhost:8080/viewer.html