You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Picks up .config/{fleet,repo} segmentation, pnpm 11.4 → 11.5 bump,
.config/fleet/.prettierignore enrollment, scripts/lint.mts
--ignore-path fix, and stale .config/ top-level dir tombstones.
Iteratively stub heavyweight modules that the bundler statically pulls in but the runtime never reaches. Apply on repos that ship a built bundle. Today: rolldown only (socket-packageurl-js, socket-sdk-js; any repo with `.config/rolldown.config.mts`). The skill is named generically because the dead-path-stubbing pattern applies to any bundler; today the only fleet bundler is rolldown.
10
+
Iteratively stub heavyweight modules that the bundler statically pulls in but the runtime never reaches. Apply on repos that ship a built bundle. Today: rolldown only (socket-packageurl-js, socket-sdk-js; any repo with `.config/repo/rolldown.config.mts`). The skill is named generically because the dead-path-stubbing pattern applies to any bundler; today the only fleet bundler is rolldown.
11
11
12
12
## When to invoke
13
13
@@ -18,19 +18,19 @@ Iteratively stub heavyweight modules that the bundler statically pulls in but th
18
18
19
19
## Skip when
20
20
21
-
- The repo doesn't build a rolldown bundle (no `.config/rolldown.config.mts`).
21
+
- The repo doesn't build a rolldown bundle (no `.config/repo/rolldown.config.mts`).
22
22
- The bundle is consumed by code that uses dynamic feature detection (rare; flagged by the rolldown plugin's `moduleSideEffects: false` annotation).
23
23
- Tests aren't running (`pnpm test` fails before any trim). Fix tests first; trim depends on the test signal.
24
24
25
25
## Required: rolldown/lib-stub.mts
26
26
27
-
🚨 This skill **REQUIRES**`.config/rolldown/lib-stub.mts` to be present and to export `createLibStubPlugin`. The file is fleet-canonical (cascades from `socket-wheelhouse/template/.config/rolldown/lib-stub.mts` via sync-scaffolding) and must NOT be edited locally per the no-fleet-fork rule.
27
+
🚨 This skill **REQUIRES**`.config/repo/rolldown/lib-stub.mts` to be present and to export `createLibStubPlugin`. The file is fleet-canonical (cascades from `socket-wheelhouse/template/.config/rolldown/lib-stub.mts` via sync-scaffolding) and must NOT be edited locally per the no-fleet-fork rule.
28
28
29
29
Before doing anything else:
30
30
31
31
```bash
32
-
[ -f .config/rolldown/lib-stub.mts ] || {
33
-
echo"ERROR: .config/rolldown/lib-stub.mts is missing."
32
+
[ -f .config/repo/rolldown/lib-stub.mts ] || {
33
+
echo"ERROR: .config/repo/rolldown/lib-stub.mts is missing."
34
34
echo"Cascade it from socket-wheelhouse:"
35
35
echo" cd /Users/<user>/projects/socket-wheelhouse &&"# socket-hook: allow cross-repo
-`dist/`: the most recent build output (run `pnpm build` first if missing or stale).
57
-
-`.config/rolldown.config.mts`: already imports `createLibStubPlugin` from `.config/rolldown/lib-stub.mts` (fleet-canonical; cascaded via sync-scaffolding).
57
+
-`.config/repo/rolldown.config.mts`: already imports `createLibStubPlugin` from `.config/repo/rolldown/lib-stub.mts` (fleet-canonical; cascaded via sync-scaffolding).
58
58
-`pnpm test`: must pass at start; the trim loop's signal is "tests still pass after stub."
59
59
60
60
## Process
@@ -112,7 +112,7 @@ If any of these find a hit, the candidate is reachable; skip it. Only candidates
112
112
113
113
### Phase 4: Stub one candidate
114
114
115
-
Edit `.config/rolldown.config.mts` to extend the `stubPattern` regex:
115
+
Edit `.config/repo/rolldown.config.mts` to extend the `stubPattern` regex:
The commit message states the count + size delta. If the trim is significant (say >50KB), also update `docs/rolldown-migration.md` with the new baseline.
161
161
162
162
## Reference
163
163
164
-
-`.config/rolldown/lib-stub.mts`: fleet-canonical plugin (cascade via sync-scaffolding; never edit locally per the no-fleet-fork rule).
164
+
-`.config/repo/rolldown/lib-stub.mts`: fleet-canonical plugin (cascade via sync-scaffolding; never edit locally per the no-fleet-fork rule).
165
165
-`docs/rolldown-migration.md`: repo-specific (in repos that ran the migration). Records baseline numbers from before/after the esbuild → rolldown switch.
166
166
-`socket-packageurl-js/.config/rolldown.config.mts`: the worked example of `createLibStubPlugin` use, with a populated `stubPattern`.
0 commit comments