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
We are looking into inlining some of our resources at react-print-pdf where we use tsup to bundle the resources. However, it seems that we can only append esbuild plugins and not prepend. In our case, we want to use https://github.com/claviska/esbuild-plugin-inline-import but it needs to be passed first as the syntax can't be resolved by other plugins.
An example way we would use it is
importcssfrom"inline:./index.css"
This causes an error as the file path matches the conditions for some of the earlier plugins, which should just be bypassed because of the inline: keyword.
We have also tried patching the esbuild config manually, using both esbuildOptions and a tsup plugin
Hey!
We are looking into inlining some of our resources at react-print-pdf where we use
tsup
to bundle the resources. However, it seems that we can only appendesbuild
plugins and not prepend. In our case, we want to use https://github.com/claviska/esbuild-plugin-inline-import but it needs to be passed first as the syntax can't be resolved by other plugins.An example way we would use it is
This causes an error as the file path matches the conditions for some of the earlier plugins, which should just be bypassed because of the
inline:
keyword.We have also tried patching the
esbuild
config manually, using both esbuildOptions and a tsup pluginBut it seems that the plugins are being overwritten or not taken into account at a later stage.
What would be a way to deal with that? Thanks!
Upvote & Fund
The text was updated successfully, but these errors were encountered: