Conversation
|
Thank you for the PR. |
They are failing due to having a test that checks such a scenario as I wrote in the PR description, and I can't figure out a way to handle it. Essentially we are pushing our patch into the The problem is that using I guess one workaround is to make Unless |
aa96d3d to
7ca61b3
Compare
7ca61b3 to
3e20d57
Compare
|
Offf is there really no way to Why oh why is everything so goddamn difficult in JS... |
|
Hi, any news from this fix ? Currently this problem makes the whole package unusable, as bundles contain absolute path from my dev machine... 🤷 |
|
Unfortunately no. I haven't figured out a way to get the relative path to an entry point bundle from esbuild... |
pinoBundlerRancheck in case there are multiple pino.js modules around, might fix some cases of the__bundlerPathsOverridesbeing missing leading to it looking forlib/worker.jsand failing__dirnamebased strategy forpinoBundlerAbsolutePath, more complex outputs layout might require some more thought on how to figure out the relative path from the current file to the workers if they are not together - fixes Usingprocess.cwdis problematic #159pinoBundlerAbsolutePathinto a virtual module so it can safely useimport.meta.urlor__dirnamedepending on the format. This makes it work in ESM mode, minus the "Dynamic require is not supported" issue of esbuild, which needs a workaround in your esbuild config - How to fix "Dynamic require of "os" is not supported" evanw/esbuild#1921