Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Configure/extend esbuild #16

Closed
mathieutu opened this issue Aug 26, 2021 · 3 comments
Closed

Configure/extend esbuild #16

mathieutu opened this issue Aug 26, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@mathieutu
Copy link
Contributor

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
Copy link
Contributor Author

Ok, I've seen evanw/esbuild#334.

Can we configure the esbuild transpilation by anyway?

@Akryum Akryum changed the title React is not defined Configure/extend esbuild Aug 26, 2021
@Akryum Akryum added the enhancement New feature or request label Aug 26, 2021
@Akryum
Copy link
Owner

Akryum commented Aug 26, 2021

Related #10

@Akryum
Copy link
Owner

Akryum commented Dec 7, 2021

Now uses Vite dev server to compile files so it should take a vite.config.ts file into account.

@Akryum Akryum closed this as completed Dec 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants