Skip to content

Add swc transpilation flag#12418

Open
krreet wants to merge 27 commits into
react:mainfrom
krreet:swap-babel-out-with-swc-in-start-build-and-test-2
Open

Add swc transpilation flag#12418
krreet wants to merge 27 commits into
react:mainfrom
krreet:swap-babel-out-with-swc-in-start-build-and-test-2

Conversation

@krreet
Copy link
Copy Markdown
Contributor

@krreet krreet commented May 20, 2022

@raix continued this PR from #11739

conflicts resolved and ran npm run audit.

reetkr and others added 26 commits August 28, 2021 12:50
Currently swc doesn't support Flow they are considering it, if they do we can revert this commit swc-project/swc#256
setting path=paths.appPath did not work https://swc.rs/docs/configuration/supported-browsers#path

Also enabled requre resolve to allow extending from packages
Move dependency loading into the loader call
Using JSON5 as projects with jsconfig.json might not have TypeScript installed - eg. VS Code reads the config + SWC is also configured via jsconfig.json in projects without TypeScript.
@krreet krreet requested review from iansu and mrmckeb as code owners May 20, 2022 13:39
@krreet krreet changed the title Swap babel out with swc in start build and test 2 Add swc transpilation behind a flag May 20, 2022
@krreet krreet changed the title Add swc transpilation behind a flag Add swc transpilation flag May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants