Skip to content

Commit 8334820

Browse files
committed
wip
1 parent a83dd5e commit 8334820

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"scripts": {
25-
"build": "vite build; tsc",
25+
"build": "NODE_ENV=production vite build; tsc",
2626
"dev": "vite build --watch",
2727
"pack": "npm pack --dry-run --pack-destination out out/brouther",
2828
"prepack": "npm run build",
@@ -48,17 +48,17 @@
4848
"react": ">=16.8.3"
4949
},
5050
"devDependencies": {
51-
"@types/node": "^20.5.9",
52-
"@types/qs": "^6.9.8",
53-
"@types/react": "^18.2.21",
54-
"cypress": "^13.1.0",
55-
"prettier": "^3.0.3",
51+
"@types/node": "20.5.9",
52+
"@types/qs": "6.9.8",
53+
"@types/react": "18.2.21",
54+
"cypress": "13.1.0",
55+
"prettier": "3.0.3",
5656
"start-server-and-test": "2.0.0",
5757
"ts-node": "10.9.1",
58-
"tslib": "^2.6.2",
59-
"typescript": "^5.2.2",
60-
"vite": "^4.4.9",
61-
"vitest": "^0.34.3"
58+
"tslib": "2.6.2",
59+
"typescript": "5.2.2",
60+
"vite": "4.4.9",
61+
"vitest": "0.34.3"
6262
},
6363
"browserslist": {
6464
"production": [

vite.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export default defineConfig({
1111
entry: "./src/index.ts",
1212
fileName: "index",
1313
formats: ["cjs", "es", "umd"],
14-
}
14+
},
15+
rollupOptions: {
16+
treeshake: true,
17+
external: ["react/jsx-runtime", "react"],
18+
},
1519
},
1620
});

0 commit comments

Comments
 (0)