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
Copy file name to clipboardExpand all lines: docs/getting-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ import { readJson } from '@socketsecurity/lib/fs'
76
76
// import { Spinner, readJson } from '@socketsecurity/lib'
77
77
```
78
78
79
-
This approach keeps your bundle size small by only including the code you actually use.
79
+
**Why subpath imports?**This library is designed for selective imports to keep bundle sizes minimal. Each subpath (like `/spinner` or `/fs`) is a separate export point defined in `package.json` exports field. The root import (`@socketsecurity/lib`) doesn't re-export all modules - you must use specific subpaths.
0 commit comments