From 33833ba3fe60d5feccf987999c018b9028e8e406 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 13 Oct 2020 23:37:10 -0400 Subject: [PATCH] normalize svelte.config.js format (#1303) --- plugins/plugin-svelte/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/plugin-svelte/plugin.js b/plugins/plugin-svelte/plugin.js index 3d0ae27feb..08b1450cee 100644 --- a/plugins/plugin-svelte/plugin.js +++ b/plugins/plugin-svelte/plugin.js @@ -25,9 +25,9 @@ module.exports = function plugin(snowpackConfig, {hot: hotOptions, ...sveltePlug if (fs.existsSync(userSvelteConfigLoc)) { const userSvelteConfig = require(userSvelteConfigLoc); - const {preprocess, ..._svelteOptions} = userSvelteConfig; + const {preprocess, compilerOptions} = userSvelteConfig; preprocessOptions = preprocess; - userSvelteOptions = _svelteOptions; + userSvelteOptions = compilerOptions; } else { //user svelte.config.js is optional and should not error if not configured if (configFilePath !== 'svelte.config.js')