Skip to content

Commit 754a910

Browse files
committed
build: inline self-imports
1 parent 651af9b commit 754a910

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

build.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ export default defineBuildConfig({
1313
alias: {
1414
"capnp-es": fileURLToPath(new URL("src/index.ts", import.meta.url)),
1515
},
16+
hooks: {
17+
"rollup:options"(_ctx, rollupOptions) {
18+
rollupOptions.external = ["typescript"];
19+
},
20+
},
1621
});

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
"test": "pnpm lint && vitest run --coverage && pnpm test:types",
4747
"test:types": "tsc --noEmit --skipLibCheck"
4848
},
49-
"dependencies": {
50-
"hex2dec": "^1.1.2"
51-
},
5249
"devDependencies": {
5350
"@types/benchmark": "^2.1.5",
5451
"@types/hex2dec": "^1.1.4",
@@ -61,6 +58,7 @@
6158
"esbuild": "^0.24.2",
6259
"eslint": "^9.18.0",
6360
"eslint-config-unjs": "^0.4.2",
61+
"hex2dec": "^1.1.2",
6462
"jiti": "^2.4.2",
6563
"mitata": "^1.0.31",
6664
"prettier": "^3.4.2",

0 commit comments

Comments
 (0)