Configure/extend esbuild
mathieutu opened this issue · 3 comments
mathieutu commented
Hi @Akryum,
I'm getting a test to Peeky, it rocks as usual!
One thing I've encountered: when using jsx in my test, I've a React is not defined
error.
However, importing React is not needed anymore to parse JSX (see https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html).
I've also tried in a typescript file, with jsx: "react-jsx"
configuration, but without any success.
Any thoughts?
Thx!
mathieutu commented
Ok, I've seen evanw/esbuild#334.
Can we configure the esbuild transpilation by anyway?
Akryum commented
Now uses Vite dev server to compile files so it should take a vite.config.ts
file into account.