Did you enable the `nodejs_compat` flag?
Did you enable the
nodejs_compat flag?nodejs_compat--node-compat, which is the old polyfill method
nodejs_compat because it imports crypto instead of node:crypto. Is there some way I can make this third party library use the polyfill modules?crypto to node:crypto, then mark it as external--node-compat worked out of the box. Is this really the way to go when using any third party library that uses node modules?cloudflare:
esbuild, then run the build yourselfwrangler provided onewrangler deploy count in 1MB limit?workers.api.error.script_too_largefetch handler) without awaiting itapp.use('/input/*', bearerAuth({ TOKEN })); I would normally use 'process.env.TOKEN'app scope, then store it in a global--node-compat--node-compatcryptocryptonode:cryptonode:cryptoesbuildesbuildcloudflare:workers.api.error.script_too_largeapp.use('/input/*', bearerAuth({ TOKEN }));appapp.use('/input/*', (c, next) => bearerAuth({ c.env.TOKEN })(c, next));