Skip to content

Commit

Permalink
Merge branch 'vite-3' of github.com:sveltejs/kit into vite-3
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 13, 2022
2 parents bc6b112 + c7a2e8b commit 03e7d40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kit/src/vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { get_aliases, resolve_entry } from './utils.js';

const cwd = process.cwd();

/** @type {Record<string, any>} */
/** @type {import('./types').EnforcedConfig} */
const enforced_config = {
appType: 'custom',
appType: true,
base: true,
build: {
cssCodeSplit: true,
Expand All @@ -32,7 +32,7 @@ const enforced_config = {
},
manifest: true,
outDir: true,
polyfillDynamicImport: true,
polyfillModulePreload: true,
rollupOptions: {
input: true,
output: {
Expand Down
3 changes: 3 additions & 0 deletions packages/kit/src/vite/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface EnforcedConfig {
[key: string]: EnforcedConfig | true;
}

0 comments on commit 03e7d40

Please sign in to comment.