From edeb4b5874d129939e24c451b9505ccf5f6201d2 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 22 Oct 2021 19:37:17 +0200 Subject: [PATCH 01/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 181ca5160dab..ee6618ba2e05 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -55,6 +55,9 @@ const config = { trailingSlash: 'never', vite: () => ({}) }, + + // option passed to rollup.onwarn (https://rollupjs.org/guide/en/#onwarn) + onwarn: () => {}, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null From 2f0ab4a9a2bfa8710774a29626e96d16ce5fc870 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 22 Oct 2021 20:33:08 +0200 Subject: [PATCH 02/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index ee6618ba2e05..5e3c6332a5d9 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // option passed to rollup.onwarn (https://rollupjs.org/guide/en/#onwarn) + // option passed to vite-svelte-plugin (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) onwarn: () => {}, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From 130a15175d13c108e057370344f2ce0f533092d5 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 22 Oct 2021 21:26:43 +0200 Subject: [PATCH 03/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 5e3c6332a5d9..27644f833b67 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // option passed to vite-svelte-plugin (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) + // option passed to vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) onwarn: () => {}, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From 341e187b8fd9d2bf67bd9f5a8e0fcaee711527c7 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 22 Oct 2021 21:27:40 +0200 Subject: [PATCH 04/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 27644f833b67..9ade10b50062 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // option passed to vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) + // passed to vite-plugin-svelte https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn onwarn: () => {}, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From 4f21a7379ba7f3e7371cc2560a388e8d8ddfa149 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 22 Oct 2021 21:55:28 +0200 Subject: [PATCH 05/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 9ade10b50062..c880ce36d0c3 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // passed to vite-plugin-svelte https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn + // passed to vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) onwarn: () => {}, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From 9fae1f96749fd6e54bdd82258d7cfbeb3037d435 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Sat, 23 Oct 2021 10:38:11 +0200 Subject: [PATCH 06/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index c880ce36d0c3..caee29479771 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,8 +56,8 @@ const config = { vite: () => ({}) }, - // passed to vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) - onwarn: () => {}, + // passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) + onwarn: (warning, defaultHandler) => defaultHandler(warning), // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null From 3131295b0933f3bf4db8354450698eab9f05c3c8 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Wed, 27 Oct 2021 12:46:16 +0200 Subject: [PATCH 07/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index caee29479771..45a6743fc73c 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,13 +56,15 @@ const config = { vite: () => ({}) }, - // passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#onwarn) - onwarn: (warning, defaultHandler) => defaultHandler(warning), + ...vite_plugin_svelte_options // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null }; +// options passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) +const vite_plugin_svelte_options = {}; + export default config; ``` @@ -222,3 +224,6 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou ### vite A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. + +### vite-plugin-svelte +A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md), or a function that returns one. Options must be in root scope of config object in svelte.config.js file. From c46d4bba1f555a310ef7004c8808a4fa023b9828 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Wed, 27 Oct 2021 12:46:57 +0200 Subject: [PATCH 08/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 45a6743fc73c..da40e883f33c 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -225,5 +225,5 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. -### vite-plugin-svelte +### vite_plugin_svelte_options A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md), or a function that returns one. Options must be in root scope of config object in svelte.config.js file. From afa6b74cab6d91cf1d7135af86f17725a0632ff3 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Wed, 27 Oct 2021 12:48:31 +0200 Subject: [PATCH 09/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index da40e883f33c..14de2a7b09d5 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -226,4 +226,4 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. ### vite_plugin_svelte_options -A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md), or a function that returns one. Options must be in root scope of config object in svelte.config.js file. +A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md). Options must be in root scope of config object in svelte.config.js file. From debf73ff584e7ef04b167ab450b7094f5449a427 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Wed, 27 Oct 2021 12:50:01 +0200 Subject: [PATCH 10/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 14de2a7b09d5..8f95c20773b9 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,14 +56,14 @@ const config = { vite: () => ({}) }, - ...vite_plugin_svelte_options + ...vite_plugin_svelte_config // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null }; -// options passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) -const vite_plugin_svelte_options = {}; +// passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) +const vite_plugin_svelte_config = {}; export default config; ``` @@ -225,5 +225,5 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. -### vite_plugin_svelte_options -A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md). Options must be in root scope of config object in svelte.config.js file. +### vite_plugin_svelte_config +A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md). These options must be in root scope of config object in svelte.config.js file. From 3294a4226d8a927a8c8d88b0efb3af04fb421395 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 29 Oct 2021 18:44:28 +0200 Subject: [PATCH 11/19] Update documentation/docs/14-configuration.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 8f95c20773b9..e58f014da5da 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -62,7 +62,7 @@ const config = { preprocess: null }; -// passed to vite-plugin-svelte, (for docs, see: https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) +// used by vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) const vite_plugin_svelte_config = {}; export default config; From d2c2c1732c5bb88dea5c5194874e8ea97c38cbc6 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 29 Oct 2021 18:45:48 +0200 Subject: [PATCH 12/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index e58f014da5da..0232991ed7ff 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,14 +56,14 @@ const config = { vite: () => ({}) }, - ...vite_plugin_svelte_config + ...vitePluginSvelteConfig // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null }; // used by vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) -const vite_plugin_svelte_config = {}; +const vitePluginSvelteConfig = {}; export default config; ``` @@ -225,5 +225,5 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. -### vite_plugin_svelte_config +### vitePluginSvelteConfig A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md). These options must be in root scope of config object in svelte.config.js file. From e72326181b28e4124ac5906193cec5f4ffd8fa98 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 29 Oct 2021 18:58:13 +0200 Subject: [PATCH 13/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 0232991ed7ff..9aacbd8deafe 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - ...vitePluginSvelteConfig + ...vitePluginSvelteConfig, // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null From eb82262930a4306a442aa0fc33a150c243bea87b Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Fri, 29 Oct 2021 19:01:18 +0200 Subject: [PATCH 14/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 9aacbd8deafe..037f7deb04d5 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -5,6 +5,9 @@ title: Configuration Your project's configuration lives in a `svelte.config.js` file. All values are optional. The complete list of options, with defaults, is shown here: ```js +// used by vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) +const vitePluginSvelteConfig = {}; + /** @type {import('@sveltejs/kit').Config} */ const config = { // options passed to svelte.compile (https://svelte.dev/docs#svelte_compile) @@ -62,9 +65,6 @@ const config = { preprocess: null }; -// used by vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) -const vitePluginSvelteConfig = {}; - export default config; ``` From 48ea40717862161eaac149434b744f6cdcd18302 Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Tue, 2 Nov 2021 12:22:49 +0100 Subject: [PATCH 15/19] Update documentation/docs/14-configuration.md Co-authored-by: Ignatius Bagus --- documentation/docs/14-configuration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 037f7deb04d5..474d2c3a4642 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -59,7 +59,8 @@ const config = { vite: () => ({}) }, - ...vitePluginSvelteConfig, + // SvelteKit uses vite-plugin-svelte, plugin options can be passed through here + // see available options (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null From 4ec090c934b284e0849902f5da2ef395225494bf Mon Sep 17 00:00:00 2001 From: Mlocik97 Date: Tue, 2 Nov 2021 12:23:24 +0100 Subject: [PATCH 16/19] Update 14-configuration.md --- documentation/docs/14-configuration.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 474d2c3a4642..4c62f7fb3a1a 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -5,9 +5,6 @@ title: Configuration Your project's configuration lives in a `svelte.config.js` file. All values are optional. The complete list of options, with defaults, is shown here: ```js -// used by vite-plugin-svelte (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) -const vitePluginSvelteConfig = {}; - /** @type {import('@sveltejs/kit').Config} */ const config = { // options passed to svelte.compile (https://svelte.dev/docs#svelte_compile) @@ -225,6 +222,3 @@ Whether to remove, append, or ignore trailing slashes when resolving URLs to rou ### vite A [Vite config object](https://vitejs.dev/config), or a function that returns one. Not all configuration options can be set, since SvelteKit depends on certain values being configured internally. - -### vitePluginSvelteConfig -A [vite-plugin-svelte config object](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md). These options must be in root scope of config object in svelte.config.js file. From bd4b6f4dc7fdc61ff522639606535f035955653f Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 2 Nov 2021 08:47:30 -0700 Subject: [PATCH 17/19] Update documentation/docs/14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 4c62f7fb3a1a..5324519002ee 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // SvelteKit uses vite-plugin-svelte, plugin options can be passed through here + // SvelteKit uses vite-plugin-svelte. Plugin options can be provided directly here. // see available options (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From c9bd6510db43ede855c883b1278c0330ecad9c47 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 2 Nov 2021 08:48:27 -0700 Subject: [PATCH 18/19] Update documentation/docs/14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 5324519002ee..2296c0a3fa30 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -56,7 +56,7 @@ const config = { vite: () => ({}) }, - // SvelteKit uses vite-plugin-svelte. Plugin options can be provided directly here. + // SvelteKit uses vite-plugin-svelte. Its options can be provided directly here. // see available options (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) From a2ae6fca0a182f0689642481c871e300275c29cb Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 2 Nov 2021 08:49:04 -0700 Subject: [PATCH 19/19] Update documentation/docs/14-configuration.md --- documentation/docs/14-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/14-configuration.md b/documentation/docs/14-configuration.md index 2296c0a3fa30..adf55fa9ecd5 100644 --- a/documentation/docs/14-configuration.md +++ b/documentation/docs/14-configuration.md @@ -57,7 +57,7 @@ const config = { }, // SvelteKit uses vite-plugin-svelte. Its options can be provided directly here. - // see available options (https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md) + // See the available options at https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md // options passed to svelte.preprocess (https://svelte.dev/docs#svelte_preprocess) preprocess: null