Skip to content

Commit 75f31b1

Browse files
authored
perf: bundle with Rslib to make startup faster (#43)
1 parent d7e5515 commit 75f31b1

File tree

5 files changed

+229
-22
lines changed

5 files changed

+229
-22
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"main": "lib/index.js",
2323
"types": "lib/index.d.ts",
2424
"scripts": {
25-
"build": "cross-env rimraf lib && cross-env tsc --version && cross-env tsc",
25+
"build": "rslib build",
26+
"dev": "rslib build -w",
2627
"lint": "echo lint",
2728
"test": "pnpm build && pnpm test:unit && pnpm test:e2e",
2829
"test:unit": "cross-env jest --config=test/unit/jest.config.js",
@@ -52,6 +53,7 @@
5253
},
5354
"devDependencies": {
5455
"@jest/console": "^27.5.1",
56+
"@rslib/core": "^0.17.0",
5557
"@rspack/core": "^1.6.0",
5658
"@types/babel__code-frame": "^7.0.6",
5759
"@types/is-glob": "^4.0.4",

0 commit comments

Comments
 (0)