Skip to content

Commit f4a1293

Browse files
committed
feat: add rsbuild
1 parent 86bf589 commit f4a1293

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
dist
33
*.ps1
44
.idea
5+
.rsbuild

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"author": "PathScale (https://vue3.dev/)",
2121
"contributors": [],
2222
"sideEffects": false,
23-
"main": "dist/bundle.js",
24-
"module": "dist/bundle.js",
25-
"browser": "dist/bundle-browser.js",
26-
"style": "dist/bundle.css",
23+
"main": "bundle.js",
24+
"module": "bundle.js",
25+
"browser": "bundle-browser.js",
26+
"style": "bundle.css",
2727
"scripts": {
2828
"prebuild": "bun run helper/index.ts && shx rm -rf dist",
29-
"build": "rollup -c --environment NODE_ENV:production",
29+
"build": "rsbuild build",
3030
"postbuild": "shx cp helper/mappings.json helper/classes.json dist",
3131
"css-lint": "stylelint src",
3232
"lint": "eslint --ext .js,.ts,.vue,.md,.html --max-warnings=0 .",
@@ -65,6 +65,10 @@
6565
"@eslint/eslintrc": "^3.3.1",
6666
"@eslint/js": "^9.23.0",
6767
"@pathscale/rollup-plugin-vue3": "^0.0.4",
68+
"@rsbuild/core": "^1.3.5",
69+
"@rsbuild/plugin-node-polyfill": "^1.3.0",
70+
"@rsbuild/plugin-vue": "^1.0.7",
71+
"@rsdoctor/rspack-plugin": "^1.0.1",
6872
"@testing-library/jest-dom": "^6.6.3",
6973
"@types/fs-extra": "9.0.5",
7074
"@types/node": "*",

0 commit comments

Comments
 (0)