sdocs 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.0.30] - 2026-07-03
11
+
12
+ ### Fixed
13
+
14
+ - The `sdocs dev`/`run` explorer UI rendered unstyled since 0.0.28: with the
15
+ staging directory under `node_modules`, the Svelte plugin doesn't serve
16
+ virtual CSS modules for the client's components. Styles are now compiled
17
+ into the components in dev. (Static builds were unaffected.)
18
+
19
+ ### Added
20
+
21
+ - The package exports `./package.json`.
22
+
23
+ ## [0.0.29] - 2026-07-03
24
+
25
+ ### Fixed
26
+
27
+ - `sdocs dev`/`run` no longer floods the console with unresolved-import
28
+ errors on Vite 8 (its rolldown-based dependency scanner can't walk `.svelte`
29
+ entry graphs). The initial scan is skipped — dependencies are still
30
+ optimized on demand — and `svelte` is pre-bundled up front.
31
+
10
32
  ## [0.0.28] - 2026-07-03
11
33
 
12
34
  ### Changed
@@ -40,8 +40,23 @@ export async function devCommand() {
40
40
  resolve: {
41
41
  dedupe: svelteDedupe(cwd),
42
42
  },
43
+ optimizeDeps: {
44
+ // Rolldown-based Vite (8+) can't scan .svelte entry graphs and floods
45
+ // the console with unresolved-import errors. Skip the initial scan —
46
+ // runtime discovery still optimizes dependencies on demand — and
47
+ // pre-bundle the one dependency the client app always needs.
48
+ entries: [],
49
+ include: ['svelte'],
50
+ },
43
51
  plugins: [
44
- svelte(),
52
+ svelte({
53
+ compilerOptions: {
54
+ // The staging dir lives under node_modules (see createStagingDir),
55
+ // where vite-plugin-svelte doesn't serve virtual CSS modules for
56
+ // components; inject styles into the JS instead.
57
+ css: 'injected',
58
+ },
59
+ }),
45
60
  sdocsPlugin({ ...config, include: absoluteIncludes }),
46
61
  ],
47
62
  server: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdocs",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "A lightweight documentation tool for Svelte 5 components",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,7 +22,8 @@
22
22
  "./ui": {
23
23
  "types": "./dist/ui/index.d.ts",
24
24
  "svelte": "./dist/ui/index.js"
25
- }
25
+ },
26
+ "./package.json": "./package.json"
26
27
  },
27
28
  "files": [
28
29
  "dist",