Alex Yang
Alex Yang
```js import { nodeModulesPolyfillPlugin } from 'esbuild-plugins-node-modules-polyfill'; import { build } from 'esbuild'; build({ entryPoints: ['src/main.ts'], outdir: 'dist', bundle: true, target: 'node22', format: 'esm', platform: 'node', plugins: [nodeModulesPolyfillPlugin()], }); ```
I guess just a simple TLA script? I already forget what it is > [@himself65](https://github.com/himself65) can you create a minimal repro where I can test it?
how about make this external package?
What's your use case in this scenario? what modules are you using
add this to your esbuild config https://github.com/evanw/esbuild/issues/1051#issuecomment-806325487
https://github.com/run-llama/LlamaIndexTS/blob/1b1081b9c9b03b23906fc3278d9172a681df00d9/packages/core/src/embeddings/utils.ts#L32
will check this
seems like bunchee have some dirty output
might be similar to https://stackoverflow.com/questions/77212131/prettier-createrequire-the-argument-filename-must-be-a-file-url-object-file
Might be related to https://github.com/huozhi/bunchee/issues/564