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
Esm code that contains require(...) will throw errors like
console.log(fs, nodeFs, require('path'), require('node:path'));
^
ReferenceError: require is not defined in ES module scope, you can use import instead
Esbuild replaces require with __require to prevent such problems while bundling. See