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
I'm trying to use the transform api as a replacement of esbuild.transform. When esbuild needs to use a helper function for lowering, it injects them at the top of the output (esbuild try).
On the other hand, oxc injects a import or require for the helper function.
This makes it difficult to use it as an replacement for my case. I'm running esbuild in renderChunk hook of rollup and at that time the chunking has already done. I have to analyze the output and run a different build to get the helper functions and connect the chunks.
If oxc has a flag that injects the helper function into the output, it will be really easy to swap esbuild with oxc.
Or if oxc has a flag that makes the output to not include the import/require, I won't need to analyze the output.
An example API looks like this:
I'm trying to use the transform api as a replacement of
esbuild.transform
. When esbuild needs to use a helper function for lowering, it injects them at the top of the output (esbuild try).On the other hand, oxc injects a
import
orrequire
for the helper function.This makes it difficult to use it as an replacement for my case. I'm running esbuild in
renderChunk
hook of rollup and at that time the chunking has already done. I have to analyze the output and run a different build to get the helper functions and connect the chunks.If oxc has a flag that injects the helper function into the output, it will be really easy to swap esbuild with oxc.
Or if oxc has a flag that makes the output to not include the
import
/require
, I won't need to analyze the output.An example API looks like this:
Then, I can know which helpers are needed without analyzing the output.
The text was updated successfully, but these errors were encountered: