sdocs 0.0.8 → 0.0.10
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/dist/commands/build.js +6 -1
- package/dist/commands/dev.js +6 -1
- package/package.json +1 -1
package/dist/commands/build.js
CHANGED
|
@@ -19,7 +19,9 @@ export async function buildCommand() {
|
|
|
19
19
|
configFile: false,
|
|
20
20
|
root: sdocsDir,
|
|
21
21
|
plugins: [
|
|
22
|
-
svelte(
|
|
22
|
+
svelte({
|
|
23
|
+
prebundleSvelteLibraries: false,
|
|
24
|
+
}),
|
|
23
25
|
sdocsPlugin({ ...config, include: absoluteIncludes, _buildMode: true }),
|
|
24
26
|
],
|
|
25
27
|
build: {
|
|
@@ -29,6 +31,9 @@ export async function buildCommand() {
|
|
|
29
31
|
input: inputs,
|
|
30
32
|
},
|
|
31
33
|
},
|
|
34
|
+
optimizeDeps: {
|
|
35
|
+
exclude: ['sdocs'],
|
|
36
|
+
},
|
|
32
37
|
});
|
|
33
38
|
console.log(`[sdocs] Build complete → dist/`);
|
|
34
39
|
}
|
package/dist/commands/dev.js
CHANGED
|
@@ -16,7 +16,9 @@ export async function devCommand() {
|
|
|
16
16
|
configFile: false,
|
|
17
17
|
root: sdocsDir,
|
|
18
18
|
plugins: [
|
|
19
|
-
svelte(
|
|
19
|
+
svelte({
|
|
20
|
+
prebundleSvelteLibraries: false,
|
|
21
|
+
}),
|
|
20
22
|
sdocsPlugin({ ...config, include: absoluteIncludes }),
|
|
21
23
|
],
|
|
22
24
|
server: {
|
|
@@ -26,6 +28,9 @@ export async function devCommand() {
|
|
|
26
28
|
allow: [cwd],
|
|
27
29
|
},
|
|
28
30
|
},
|
|
31
|
+
optimizeDeps: {
|
|
32
|
+
exclude: ['sdocs'],
|
|
33
|
+
},
|
|
29
34
|
});
|
|
30
35
|
await server.listen();
|
|
31
36
|
server.printUrls();
|