Skip to content

Commit d7cdcef

Browse files
committed
Add @swc/core and @swc/wasm and enable ts-node --swc transpiler
Enable Speedy Web Compiler (Rust) to transpile TypeScript > an order of magnitude faster than vanilla `transpileOnly`
1 parent 1f6b431 commit d7cdcef

File tree

5 files changed

+153
-1
lines changed

5 files changed

+153
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

β€Žpackage.jsonβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"snapshots:update": "jest -u",
2323
"storybook": "(adb reverse tcp:7007 tcp:7007 || true) && start-storybook -c storybook -p 7007",
2424
"get-stories": "sb-rn-get-stories --config-path=./.storybook",
25-
"server": "ts-node node.ts",
25+
"server": "ts-node --swc node.ts",
2626
"deno": "deno run --allow-net deno.ts",
2727
"postinstall": "patch-package",
2828
"rename": "yarn react-native-rename",
@@ -64,6 +64,8 @@
6464
"@storybook/linter-config": "3.1.2",
6565
"@storybook/react-native": "next",
6666
"@storybook/react-native-server": "next",
67+
"@swc/core": "1.2.147",
68+
"@swc/wasm": "1.2.147",
6769
"@types/jest": "27.4.1",
6870
"@types/node": "16.11.26",
6971
"@types/react": "17.0.39",

β€Žyarn.lockβ€Ž

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5580,6 +5580,154 @@ __metadata:
55805580
languageName: node
55815581
linkType: hard
55825582

5583+
"@swc/core-android-arm-eabi@npm:1.2.147":
5584+
version: 1.2.147
5585+
resolution: "@swc/core-android-arm-eabi@npm:1.2.147"
5586+
conditions: os=android & cpu=arm
5587+
languageName: node
5588+
linkType: hard
5589+
5590+
"@swc/core-android-arm64@npm:1.2.147":
5591+
version: 1.2.147
5592+
resolution: "@swc/core-android-arm64@npm:1.2.147"
5593+
conditions: os=android & cpu=arm64
5594+
languageName: node
5595+
linkType: hard
5596+
5597+
"@swc/core-darwin-arm64@npm:1.2.147":
5598+
version: 1.2.147
5599+
resolution: "@swc/core-darwin-arm64@npm:1.2.147"
5600+
conditions: os=darwin & cpu=arm64
5601+
languageName: node
5602+
linkType: hard
5603+
5604+
"@swc/core-darwin-x64@npm:1.2.147":
5605+
version: 1.2.147
5606+
resolution: "@swc/core-darwin-x64@npm:1.2.147"
5607+
conditions: os=darwin & cpu=x64
5608+
languageName: node
5609+
linkType: hard
5610+
5611+
"@swc/core-freebsd-x64@npm:1.2.147":
5612+
version: 1.2.147
5613+
resolution: "@swc/core-freebsd-x64@npm:1.2.147"
5614+
conditions: os=freebsd & cpu=x64
5615+
languageName: node
5616+
linkType: hard
5617+
5618+
"@swc/core-linux-arm-gnueabihf@npm:1.2.147":
5619+
version: 1.2.147
5620+
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.2.147"
5621+
conditions: os=linux & cpu=arm
5622+
languageName: node
5623+
linkType: hard
5624+
5625+
"@swc/core-linux-arm64-gnu@npm:1.2.147":
5626+
version: 1.2.147
5627+
resolution: "@swc/core-linux-arm64-gnu@npm:1.2.147"
5628+
conditions: os=linux & cpu=arm64
5629+
languageName: node
5630+
linkType: hard
5631+
5632+
"@swc/core-linux-arm64-musl@npm:1.2.147":
5633+
version: 1.2.147
5634+
resolution: "@swc/core-linux-arm64-musl@npm:1.2.147"
5635+
conditions: os=linux & cpu=arm64
5636+
languageName: node
5637+
linkType: hard
5638+
5639+
"@swc/core-linux-x64-gnu@npm:1.2.147":
5640+
version: 1.2.147
5641+
resolution: "@swc/core-linux-x64-gnu@npm:1.2.147"
5642+
conditions: os=linux & cpu=x64
5643+
languageName: node
5644+
linkType: hard
5645+
5646+
"@swc/core-linux-x64-musl@npm:1.2.147":
5647+
version: 1.2.147
5648+
resolution: "@swc/core-linux-x64-musl@npm:1.2.147"
5649+
conditions: os=linux & cpu=x64
5650+
languageName: node
5651+
linkType: hard
5652+
5653+
"@swc/core-win32-arm64-msvc@npm:1.2.147":
5654+
version: 1.2.147
5655+
resolution: "@swc/core-win32-arm64-msvc@npm:1.2.147"
5656+
conditions: os=win32 & cpu=arm64
5657+
languageName: node
5658+
linkType: hard
5659+
5660+
"@swc/core-win32-ia32-msvc@npm:1.2.147":
5661+
version: 1.2.147
5662+
resolution: "@swc/core-win32-ia32-msvc@npm:1.2.147"
5663+
conditions: os=win32 & cpu=ia32
5664+
languageName: node
5665+
linkType: hard
5666+
5667+
"@swc/core-win32-x64-msvc@npm:1.2.147":
5668+
version: 1.2.147
5669+
resolution: "@swc/core-win32-x64-msvc@npm:1.2.147"
5670+
conditions: os=win32 & cpu=x64
5671+
languageName: node
5672+
linkType: hard
5673+
5674+
"@swc/core@npm:1.2.147":
5675+
version: 1.2.147
5676+
resolution: "@swc/core@npm:1.2.147"
5677+
dependencies:
5678+
"@swc/core-android-arm-eabi": 1.2.147
5679+
"@swc/core-android-arm64": 1.2.147
5680+
"@swc/core-darwin-arm64": 1.2.147
5681+
"@swc/core-darwin-x64": 1.2.147
5682+
"@swc/core-freebsd-x64": 1.2.147
5683+
"@swc/core-linux-arm-gnueabihf": 1.2.147
5684+
"@swc/core-linux-arm64-gnu": 1.2.147
5685+
"@swc/core-linux-arm64-musl": 1.2.147
5686+
"@swc/core-linux-x64-gnu": 1.2.147
5687+
"@swc/core-linux-x64-musl": 1.2.147
5688+
"@swc/core-win32-arm64-msvc": 1.2.147
5689+
"@swc/core-win32-ia32-msvc": 1.2.147
5690+
"@swc/core-win32-x64-msvc": 1.2.147
5691+
dependenciesMeta:
5692+
"@swc/core-android-arm-eabi":
5693+
optional: true
5694+
"@swc/core-android-arm64":
5695+
optional: true
5696+
"@swc/core-darwin-arm64":
5697+
optional: true
5698+
"@swc/core-darwin-x64":
5699+
optional: true
5700+
"@swc/core-freebsd-x64":
5701+
optional: true
5702+
"@swc/core-linux-arm-gnueabihf":
5703+
optional: true
5704+
"@swc/core-linux-arm64-gnu":
5705+
optional: true
5706+
"@swc/core-linux-arm64-musl":
5707+
optional: true
5708+
"@swc/core-linux-x64-gnu":
5709+
optional: true
5710+
"@swc/core-linux-x64-musl":
5711+
optional: true
5712+
"@swc/core-win32-arm64-msvc":
5713+
optional: true
5714+
"@swc/core-win32-ia32-msvc":
5715+
optional: true
5716+
"@swc/core-win32-x64-msvc":
5717+
optional: true
5718+
bin:
5719+
swcx: run_swcx.js
5720+
checksum: 6cf22c758e1a2fd018b809662a3a12e1d3e1be3a261ed76e7372e5325ad9447ae1538cce54964bdbe00343318b6810524715e0d294bc4c32d5e8cd4c170e9a23
5721+
languageName: node
5722+
linkType: hard
5723+
5724+
"@swc/wasm@npm:1.2.147":
5725+
version: 1.2.147
5726+
resolution: "@swc/wasm@npm:1.2.147"
5727+
checksum: 86f6d2812d429436f08a03a4bd93aec4b9d330b394f2b1ecbe808b57a22e1d8741170641806881072d39d51af1a9d661655c28196cffb2cd2015cbb4d2fe34fc
5728+
languageName: node
5729+
linkType: hard
5730+
55835731
"@tootallnate/once@npm:1":
55845732
version: 1.1.2
55855733
resolution: "@tootallnate/once@npm:1.1.2"
@@ -17011,6 +17159,8 @@ fsevents@^1.2.7:
1701117159
"@storybook/linter-config": 3.1.2
1701217160
"@storybook/react-native": next
1701317161
"@storybook/react-native-server": next
17162+
"@swc/core": 1.2.147
17163+
"@swc/wasm": 1.2.147
1701417164
"@types/jest": 27.4.1
1701517165
"@types/node": 16.11.26
1701617166
"@types/react": 17.0.39

0 commit comments

Comments
Β (0)