fix: default externals configuration
This commit is contained in:
parent
8d3c7b6286
commit
b5246d1d4b
1 changed files with 2 additions and 4 deletions
|
@ -16,6 +16,8 @@ import { resolveDependency } from './util.js';
|
|||
const ALWAYS_EXTERNAL = new Set([
|
||||
...builtinModules.map((name) => `node:${name}`),
|
||||
'@sveltejs/vite-plugin-svelte',
|
||||
'@proload/core',
|
||||
'@proload/core/lib/esm/requireOrImport.mjs',
|
||||
'serialize-javascript',
|
||||
'micromark-util-events-to-acorn',
|
||||
'node-fetch',
|
||||
|
@ -65,10 +67,6 @@ export async function createVite(inlineConfig: ViteConfigWithSSR, { astroConfig,
|
|||
proxy: {
|
||||
// add proxies here
|
||||
},
|
||||
fs: {
|
||||
// Allow serving files from one level up to the project root
|
||||
allow: ['..'],
|
||||
},
|
||||
},
|
||||
// Note: SSR API is in beta (https://vitejs.dev/guide/ssr.html)
|
||||
ssr: {
|
||||
|
|
Loading…
Reference in a new issue