Replies: 2 comments 1 reply
-
There is a esbuild plugin, which is basically will run babel for files with macro. That means it will slow down esbuild. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@timofei-iatsenko Thanks for your feedback. The reason we chose to use esbuild was indeed to get very fast builds, so going back to something slower (Babel) would make no sense in our case. I guess then the only way to use lingui in an esbuild context would be to use lingui non-macro-usage. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have been using esbuild in our tech stack for couple of years, to transpile our codebase written in typescript.
Now we would like to integrate lingui.
The thing is we are not using babel, nor swc, so are we right to assume that lingui is not esbuild-compatible at the moment regarding the use of the
t
macro ? (As the documentation saysNon-macro use is also supported, but it's not common. It's recommended to use macros.
, we are trying to use macros ...)Having this simple
index.ts
file:pnpm lingui extract
works finepnpm lingui compile --typescript
works fineRunning the index.ts file does not work (in this case running the file using tsx which uses esbuild under the hood):
pnpm tsx ./src.index.ts
Is there an esbuild plugin available somewhere, like the ones available for babel and swc ?
Beta Was this translation helpful? Give feedback.
All reactions