Skip to content

Commit 1f440ec

Browse files
committed
chore: prebundle tinyglobby to reduce deps count
1 parent db4a9af commit 1f440ec

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

.github/renovate.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
'react-dom-18',
6969
// see https://github.com/web-infra-dev/rslib/pull/992
7070
'@ast-grep/napi',
71+
// Temporary ignore
72+
'tinyglobby',
7173
],
7274
postUpdateOptions: ['pnpmDedupe'],
7375
}

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@rsbuild/core": "~1.5.7",
47-
"rsbuild-plugin-dts": "workspace:*",
48-
"tinyglobby": "^0.2.15"
47+
"rsbuild-plugin-dts": "workspace:*"
4948
},
5049
"devDependencies": {
5150
"@module-federation/rsbuild-plugin": "^0.19.1",
@@ -61,6 +60,7 @@
6160
"rsbuild-plugin-publint": "^0.3.3",
6261
"rslib": "npm:@rslib/[email protected]",
6362
"rslog": "^1.2.11",
63+
"tinyglobby": "0.2.14",
6464
"tsconfck": "3.1.6",
6565
"typescript": "^5.9.2"
6666
},

packages/core/prebundle.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
typescript: 'typescript',
1313
},
1414
dependencies: [
15+
'tinyglobby',
1516
{
1617
name: 'chokidar',
1718
// strip sourcemap comment

packages/core/rslib.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default defineConfig({
5353
picocolors: '../compiled/picocolors/index.js',
5454
chokidar: '../compiled/chokidar/index.js',
5555
rslog: '../compiled/rslog/index.js',
56+
tinyglobby: '../compiled/tinyglobby/index.js',
5657
},
5758
},
5859
tools: {

packages/core/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"paths": {
1313
"chokidar": ["./compiled/chokidar"],
1414
"picocolors": ["./compiled/picocolors"],
15-
"rslog": ["./compiled/rslog"]
15+
"rslog": ["./compiled/rslog"],
16+
"tinyglobby": ["./compiled/tinyglobby"]
1617
}
1718
},
1819
"include": ["src", "types.d.ts"],

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)