Resolve vite client modules to vendored vite (#1903)
* Resolve vite client modules to vendored vite * Adds a changeset
This commit is contained in:
parent
fb4eb080ec
commit
41c6a772a2
2 changed files with 7 additions and 2 deletions
5
.changeset/popular-plants-report.md
Normal file
5
.changeset/popular-plants-report.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix for dev server not starting
|
|
@ -2996,9 +2996,9 @@ const NULL_BYTE_PLACEHOLDER = `__x00__`;
|
||||||
const CLIENT_PUBLIC_PATH = `/@vite/client`;
|
const CLIENT_PUBLIC_PATH = `/@vite/client`;
|
||||||
const ENV_PUBLIC_PATH = `/@vite/env`;
|
const ENV_PUBLIC_PATH = `/@vite/env`;
|
||||||
// eslint-disable-next-line node/no-missing-require
|
// eslint-disable-next-line node/no-missing-require
|
||||||
const CLIENT_ENTRY = require.resolve('vite/dist/client/client.mjs');
|
const CLIENT_ENTRY = require.resolve('../../client/client.mjs');
|
||||||
// eslint-disable-next-line node/no-missing-require
|
// eslint-disable-next-line node/no-missing-require
|
||||||
const ENV_ENTRY = require.resolve('vite/dist/client/env.mjs');
|
const ENV_ENTRY = require.resolve('../../client/env.mjs');
|
||||||
const CLIENT_DIR = path__default.dirname(CLIENT_ENTRY);
|
const CLIENT_DIR = path__default.dirname(CLIENT_ENTRY);
|
||||||
// ** READ THIS ** before editing `KNOWN_ASSET_TYPES`.
|
// ** READ THIS ** before editing `KNOWN_ASSET_TYPES`.
|
||||||
// If you add an asset to `KNOWN_ASSET_TYPES`, make sure to also add it
|
// If you add an asset to `KNOWN_ASSET_TYPES`, make sure to also add it
|
||||||
|
|
Loading…
Add table
Reference in a new issue