Skip to content

Commit

Permalink
try reverting a portion of recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jul 8, 2022
1 parent 1ab2fbe commit 7136010
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/kit/src/vite/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ export const get_default_config = function ({ config, input, ssr, outDir }) {
input,
output: {
format: 'esm',
entryFileNames: ssr ? '[name].js' : 'immutable/[name]-[hash].js',
chunkFileNames: 'immutable/chunks/[name]-[hash].js',
assetFileNames: 'immutable/assets/[name]-[hash][extname]'
entryFileNames: ssr ? '[name].js' : '[name]-[hash].js',
chunkFileNames: 'chunks/[name]-[hash].js',
assetFileNames: 'assets/[name]-[hash][extname]'
},
preserveEntrySignatures: 'strict'
},
Expand Down
4 changes: 2 additions & 2 deletions packages/kit/src/vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function kit() {
const input = {
// Put unchanging assets in immutable directory. We don't set that in the
// outDir so that other plugins can add mutable assets to the bundle
start: `${get_runtime_path(svelte_config.kit)}/client/start.js`
'immutable/start': `${get_runtime_path(svelte_config.kit)}/client/start.js`
};

// This step is optional — Vite/Rollup will create the necessary chunks
Expand All @@ -108,7 +108,7 @@ function kit() {
const name = relative.startsWith('..')
? path.basename(file)
: posixify(path.join('pages', relative));
input[name] = resolved;
input[`immutable/${name}`] = resolved;
});

return get_default_config({
Expand Down

0 comments on commit 7136010

Please sign in to comment.