full site update
This commit is contained in:
2
node_modules/astro/dist/vite-plugin-load-fallback/index.d.ts
generated
vendored
2
node_modules/astro/dist/vite-plugin-load-fallback/index.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
import nodeFs from 'node:fs';
|
||||
import type * as vite from 'vite';
|
||||
type NodeFileSystemModule = typeof nodeFs;
|
||||
export interface LoadFallbackPluginParams {
|
||||
interface LoadFallbackPluginParams {
|
||||
fs?: NodeFileSystemModule;
|
||||
root: URL;
|
||||
}
|
||||
|
6
node_modules/astro/dist/vite-plugin-load-fallback/index.js
generated
vendored
6
node_modules/astro/dist/vite-plugin-load-fallback/index.js
generated
vendored
@@ -41,8 +41,10 @@ function loadFallbackPlugin({
|
||||
}
|
||||
},
|
||||
async load(id) {
|
||||
const source = await tryLoadModule(id);
|
||||
return source;
|
||||
const code = await tryLoadModule(id);
|
||||
if (code) {
|
||||
return { code };
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user