-
Notifications
You must be signed in to change notification settings - Fork 19
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
esbuild #229
base: main
Are you sure you want to change the base?
esbuild #229
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
export default WebpackWorker; | ||
class PenumbraWebWorker extends Worker {} | ||
export default PenumbraWebWorker; | ||
} |
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.
not in use - can delete
@@ -178,7 +178,7 @@ function save( | |||
'stream' in files ? (files as unknown as PenumbraFile) : files[0]; | |||
const [ | |||
filename, | |||
extension = file.mimetype ? mime.extension(file.mimetype) : '', | |||
extension = file.mimetype ? `.${getExtension(file.mimetype)}` : '', |
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.
lighter mime type lib meant for browsers. also noticed neither library returns with a .
prefix which would result in imagepng
@@ -8,6 +8,5 @@ export { default as getTextFromRS } from './getTextFromRS'; | |||
export { default as toBuff } from './toBuff'; | |||
export { default as blobCache } from './blobCache'; | |||
export { default as isViewableText } from './isViewableText'; | |||
export { default as intoStream } from './intoStream'; |
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.
Unused + is the only thing depending on web-streams-node
, so we can drop it and the npm lib (which itself requires a bunch of polyfills to support)
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.
esm & cjs tests are now passing
These changes don't deprecate setWorkerLocation just yet. I think we can save that for 6.1 |
where do I change the code that's calling build:example?
@bencmbrook Where do I change the code that is calling |
@bencmbrook thanks; I'll get this unblocked & ready for review by EOW |
@eligrey updated that vercel build script to |
src/workers.ts
Outdated
penumbra: '/worker.penumbra.js', | ||
penumbra: 'worker.penumbra.js', |
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.
@eligrey is this change ok? I've seen it go back and forth in this PR. With the /
the worker 404s in the example
Alt to #226 with esbuild only
Related Issues
Public Changelog
[none]
Security Implications
[none]