Skip to content

Commit

Permalink
[fix] allow overriding inlineDynamicImports
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 28, 2021
1 parent dab42aa commit 744bf2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-carpets-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] allow overriding inlineDynamicImports
10 changes: 7 additions & 3 deletions packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,12 @@ async function build_server(

const default_config = {
build: {
target: 'es2020'
target: 'es2020',
rollupOptions: {
output: {
inlineDynamicImports: true
}
}
},
server: {
fs: {
Expand Down Expand Up @@ -468,8 +473,7 @@ async function build_server(
format: 'esm',
entryFileNames: '[name].js',
chunkFileNames: 'chunks/[name]-[hash].js',
assetFileNames: 'assets/[name]-[hash][extname]',
inlineDynamicImports: true
assetFileNames: 'assets/[name]-[hash][extname]'
},
preserveEntrySignatures: 'strict'
}
Expand Down

0 comments on commit 744bf2e

Please sign in to comment.