Skip to content

Commit

Permalink
normalize svelte.config.js format (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Oct 14, 2020
1 parent 26584a4 commit 33833ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/plugin-svelte/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

1 comment on commit 33833ba

@vercel
Copy link

@vercel vercel bot commented on 33833ba Oct 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.