Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tsx): use swc #10

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Note to package authors reading this: The simplest fix here is to distribute onl

## JSX / TS(X)

This loader checks for a `esbuild.config.mjs` in the project root (if you want to keep it elsewhere, consider a symlink in the project root pointing to its actual location); only options for [esbuild's "transform" API](https://esbuild.github.io/api/#transform) are valid (esbuild handles looking for a tsconfig). When none is found, it uses a few necessary default.
This loader check for a `.swcrc` in the project root (if you want to keep it elsewhere, consider a symlink in the project root pointing to its actual location); only options for [swc's "transform" API](https://swc.rs/docs/configuring-swc) are valid (swc handles looking for a tsconfig). When none is found, it uses a few necessary default.
AugustinMauroy marked this conversation as resolved.
Show resolved Hide resolved

This loader does _not_ handle TypeScript's file extension nonsense. Import specifiers must use the actual file extension of the file actually on disk:

Expand Down
3 changes: 0 additions & 3 deletions esbuild.config.mjs

This file was deleted.

Loading
Loading