Anyone have luck with tsup esbuild for
Anyone have luck with tsup (esbuild) for building dependencies that use built-ins like Buffer? I've tried a million things to get the usage of a third party tool (passkit-generator).
If I output ESM, I get:
If I output CJS, I get:
I've tried NodeGlobalsPolyfillPlugin and NodeModulesPolyfillPlugin plugins, using node-stdlib-browser, as well as trying to create a shim file. I've tried turning off/on node_compat and setting "type": "module" in my package.json.
My wrangler.toml:
I'm a bit at a loss what else to try to get these imports fixed, any help would be greatly appreaciated.
If I output ESM, I get:
If I output CJS, I get:
I've tried NodeGlobalsPolyfillPlugin and NodeModulesPolyfillPlugin plugins, using node-stdlib-browser, as well as trying to create a shim file. I've tried turning off/on node_compat and setting "type": "module" in my package.json.
My wrangler.toml:
I'm a bit at a loss what else to try to get these imports fixed, any help would be greatly appreaciated.
