@sveltejs/vite-plugin-svelte 1.2.0 → 1.3.0
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/index.cjs +452 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.js +444 -201
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +4 -1
- package/src/utils/compile.ts +36 -3
- package/src/utils/constants.ts +2 -0
- package/src/utils/esbuild.ts +19 -7
- package/src/utils/options.ts +90 -13
- package/src/utils/vite-plugin-svelte-stats.ts +206 -0
package/dist/index.d.ts
CHANGED
|
@@ -78,9 +78,11 @@ interface PluginOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
disableDependencyReinclusion?: boolean | string[];
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Enable support for Vite's dependency optimization to prebundle Svelte libraries.
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
* To disable prebundling for a specific library, add it to `optimizeDeps.exclude`.
|
|
84
|
+
*
|
|
85
|
+
* @default true for dev, false for build
|
|
84
86
|
*/
|
|
85
87
|
prebundleSvelteLibraries?: boolean;
|
|
86
88
|
/**
|
|
@@ -171,6 +173,12 @@ interface ExperimentalOptions {
|
|
|
171
173
|
*
|
|
172
174
|
*/
|
|
173
175
|
sendWarningsToBrowser?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* disable svelte compile statistics
|
|
178
|
+
*
|
|
179
|
+
* @default false
|
|
180
|
+
*/
|
|
181
|
+
disableCompileStats?: 'dev' | 'build' | boolean;
|
|
174
182
|
}
|
|
175
183
|
interface InspectorOptions {
|
|
176
184
|
/**
|