Skip to content

Commit 81265c7

Browse files
branchseerclaude
andcommitted
fix(playground): import @playground/lib (not 'lib') so vite build resolves
Also update the inspection hint in the comment to match the default `dist/assets/index-<hash>.js` filename now that vite.config.js is gone. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fe31bac commit 81265c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

playground/packages/app/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { sum } from 'lib';
1+
import { sum } from '@playground/lib';
22

33
// Vite's `define` plugin substitutes `process.env.NODE_ENV` at build time, so
44
// only the branch matching the current NODE_ENV survives dead-code elimination.
5-
// After `vt run --cache build`, inspect `dist/assets/main.js` to see which
6-
// literal (`PROD build` or `DEV build`) made it into the bundle.
5+
// After `vt run --cache build`, inspect `dist/assets/index-<hash>.js` to see
6+
// which literal (`PROD build` or `DEV build`) made it into the bundle.
77
if (process.env.NODE_ENV === 'production') {
88
console.log('PROD build:', sum(1, 2, 3));
99
} else {

0 commit comments

Comments
 (0)