Skip to content

Commit

Permalink
[fix] upgrade to Vite 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Dec 13, 2021
1 parent 484ea9a commit 0656d7f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-dolls-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] upgrade to Vite 2.7
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.30",
"cheap-watch": "^1.0.4",
"sade": "^1.7.4",
"vite": "^2.6.14"
"vite": "^2.7.2"
},
"devDependencies": {
"@rollup/plugin-replace": "^3.0.0",
Expand Down
21 changes: 2 additions & 19 deletions packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,7 @@ async function build_client({
/** @type {import('vite').UserConfig} */
const vite_config = config.kit.vite();

const default_config = {
server: {
fs: {
strict: true
}
}
};
const default_config = {};

// don't warn on overriding defaults
const [modified_vite_config] = deep_merge(default_config, vite_config);
Expand Down Expand Up @@ -440,11 +434,6 @@ async function build_server(
const default_config = {
build: {
target: 'es2020'
},
server: {
fs: {
strict: true
}
}
};

Expand Down Expand Up @@ -547,13 +536,7 @@ async function build_service_worker(
/** @type {import('vite').UserConfig} */
const vite_config = config.kit.vite();

const default_config = {
server: {
fs: {
strict: true
}
}
};
const default_config = {};

// don't warn on overriding defaults
const [modified_vite_config] = deep_merge(default_config, vite_config);
Expand Down
1 change: 0 additions & 1 deletion packages/kit/src/core/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class Watcher extends EventEmitter {
const default_config = {
server: {
fs: {
strict: true,
allow: this.allowed_directories()
},
strictPort: true
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0656d7f

Please sign in to comment.