fix: default externals configuration

This commit is contained in:
Nate Moore 2021-12-07 14:12:01 -06:00
parent 8d3c7b6286
commit b5246d1d4b

View file

@ -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: {