davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

default.createRequire not working #23

Closed as1605 closed 10 months ago

as1605 commented 1 year ago

I am working on a CommonJS module, which uses Module as in Module.createRequire, however, Module is null so it is throwing errors

Can you please let me know how to fix this?

davidmyersdev commented 1 year ago

Can you please provide a reproducible example with CodeSandbox or StackBlitz?