Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.17.1
What version of Node are you using?
No response
What operating system are you using?
Mac
Describe the Bug
[ERROR] service core:user:my-app: Uncaught TypeError: (intermediate value).require is not a function
at index.js:43523:22 in __require2
The problem is that my code / the generated bundle uses:
var __require = id => {
return import.meta.require(id)
}
And workerd provides an empty object for import.meta, thus import.meta.require is undefined and not a function.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.17.1
What version of Node are you using?
No response
What operating system are you using?
Mac
Describe the Bug
[ERROR] service core:user:my-app: Uncaught TypeError: (intermediate value).require is not a function
The problem is that my code / the generated bundle uses:
And workerd provides an empty object for import.meta, thus import.meta.require is undefined and not a function.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response