Skip to content

Commit 65d3604

Browse files
authored
feat(optimizer): support nub lockfile (#22891)
1 parent 9e79b51 commit 65d3604

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎docs/guide/dep-pre-bundling.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can further customize Rolldown too with the [`optimizeDeps.rolldownOptions`
6565

6666
Vite caches the pre-bundled dependencies in `node_modules/.vite`. It determines whether it needs to re-run the pre-bundling step based on a few sources:
6767

68-
- Package manager lockfile content, e.g. `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock` or `aube-lock.yaml`.
68+
- Package manager lockfile content, e.g. `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock`, `aube-lock.yaml` or `nub.lock`.
6969
- Patches folder modification time.
7070
- Relevant fields in your `vite.config.js`, if present.
7171
- `NODE_ENV` value.

‎packages/vite/src/node/optimizer/index.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,11 @@ const lockfileFormats = [
12581258
checkPatchesDir: false,
12591259
manager: 'aube',
12601260
},
1261+
{
1262+
path: 'nub.lock',
1263+
checkPatchesDir: 'patches',
1264+
manager: 'nub',
1265+
},
12611266

12621267
// discouraged package manager lockfiles
12631268
// or deprecated lockfiles

0 commit comments

Comments
 (0)