fix: exclude proload/core
This commit is contained in:
parent
bedb8cf82b
commit
ec6c6169dc
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,7 @@ import type { AstroConfig } from '../@types/astro';
|
|||
import type { AstroDevServer } from './dev';
|
||||
import type { LogOptions } from './logger';
|
||||
|
||||
import { builtinModules } from 'module';
|
||||
import { builtinModules, createRequire } from 'module';
|
||||
import { fileURLToPath } from 'url';
|
||||
import vite from './vite.js';
|
||||
import astroVitePlugin from '../vite-plugin-astro/index.js';
|
||||
|
@ -12,11 +12,14 @@ import markdownVitePlugin from '../vite-plugin-markdown/index.js';
|
|||
import jsxVitePlugin from '../vite-plugin-jsx/index.js';
|
||||
import { resolveDependency } from './util.js';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
// Some packages are just external, and that’s the way it goes.
|
||||
const ALWAYS_EXTERNAL = new Set([
|
||||
...builtinModules.map((name) => `node:${name}`),
|
||||
'@sveltejs/vite-plugin-svelte',
|
||||
'@proload/core',
|
||||
require.resolve('@proload/core'),
|
||||
'@babel/core',
|
||||
'babel-plugin-module-resolver',
|
||||
'serialize-javascript',
|
||||
|
|
Loading…
Reference in a new issue