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
{{ message }}
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
unenv should only mock module when methods are not implemented - that is createRequire and isBuiltin should use the workerd implementation when it is present (/cc @pi0)
workerd has no access to import.meta.url
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We currently have to patch require
https://github.com/dario-piotrowicz/poc-build-nextjs-app-for-cf-workers/blob/6cc9bf4a3e4b0c0673b0c9fac22912445baa734a/nextjs-worker-builder/src/build/build-worker/patches/investigated/patchRequire.ts
@jasnell implemented
module.createRequire
in cloudflare/workerd#2636Looking at evanw/esbuild#1921, it looks like the banner can be updated to something similar to
There are a few things to solve here:
unenv should only mock
module
when methods are not implemented - that iscreateRequire
andisBuiltin
should use the workerd implementation when it is present (/cc @pi0)workerd
has no access toimport.meta.url
The text was updated successfully, but these errors were encountered: