Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit cf65a9a

Browse files
committed
Add vite as peer dependency & pin @swc/core [publish]
1 parent f272c3a commit cf65a9a

File tree

5 files changed

+274
-248
lines changed

5 files changed

+274
-248
lines changed

.npmignore

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

CHANGELOG.md

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

3+
## 0.1.2
4+
5+
- Add vite as peer dependency
6+
- Pin @swc/core version to 1.2.141 to avoid a 30mb bump of bundle size
7+
38
## 0.1.1
49

510
Add LICENSE

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"name": "vite-plugin-swc-react-refresh",
33
"description": "Use the versatility of swc for development and the maturity of esbuild for production",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"license": "MIT",
66
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
77
"main": "src/swc-react-refresh.js",
8+
"files": [
9+
"src/*.js",
10+
"src/*.d.ts"
11+
],
812
"repository": "github:ArnaudBarre/vite-plugin-swc-react-refresh",
913
"keywords": [
1014
"vite",
@@ -23,12 +27,15 @@
2327
"trailingComma": "all"
2428
},
2529
"dependencies": {
26-
"@swc/core": "^1.2.133"
30+
"@swc/core": "1.2.141"
31+
},
32+
"peerDependencies": {
33+
"vite": "^2 || ^3"
2734
},
2835
"devDependencies": {
29-
"@types/node": "^17.0.10",
30-
"prettier": "^2.5.1",
31-
"typescript": "^4.5.4",
32-
"vite": "^2.7.13"
36+
"@types/node": "^18.0.6",
37+
"prettier": "^2.7.1",
38+
"typescript": "^4.7.4",
39+
"vite": "^3.0.2"
3340
}
3441
}

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"include": ["src"],
33
"compilerOptions": {
4-
/* Target node12 */
4+
/* Target node 14 */
55
"module": "CommonJS",
6-
"lib": ["ES2019"],
7-
"target": "ES2019",
6+
"lib": ["ES2020"],
7+
"target": "ES2020",
88
"declaration": true,
9+
"skipLibCheck": true,
910

1011
/* Imports */
1112
"moduleResolution": "node", // Allow `index` imports

0 commit comments

Comments
 (0)