Skip to content

Commit c01eecc

Browse files
KidkArolisclaude
andcommitted
Replace Babel with SWC for test transpilation
Babel was only used via @babel/register to transform ESM imports and JSX at runtime for ava tests. SWC does the same job significantly faster with fewer dependencies (net removal of 60 packages). - Delete .babelrc, replace with .swcrc - Delete .nycrc (only referenced Babel-specific istanbul config, unused by c8) - Swap @babel/* deps for @swc/core + @swc-node/register - Update ava config to use @swc-node/register with SWCRC=true Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cfa5e52 commit c01eecc

7 files changed

Lines changed: 2574 additions & 6245 deletions

File tree

.babelrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.nycrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.oxlintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"no-unused-vars": "off"
4+
}
5+
}

.swcrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"jsc": {
3+
"parser": {
4+
"syntax": "ecmascript",
5+
"jsx": true
6+
},
7+
"transform": {
8+
"react": {
9+
"runtime": "classic"
10+
}
11+
}
12+
},
13+
"module": {
14+
"type": "commonjs"
15+
}
16+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- Replace Babel with SWC for test transpilation, reducing dev dependencies significantly.
6+
37
## 0.4.7
48

59
- Fix the release, publish the right directory.

0 commit comments

Comments
 (0)