Initial commit: New MoreminiMore website with fresh design
This commit is contained in:
9
node_modules/astro/dist/vite-plugin-static-paths/index.d.ts
generated
vendored
Normal file
9
node_modules/astro/dist/vite-plugin-static-paths/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Plugin } from 'vite';
|
||||
/**
|
||||
* Virtual module that exposes StaticPaths class for prerendering.
|
||||
* This allows adapters to use StaticPaths from their runtime (e.g., workerd)
|
||||
* to collect all prerenderable paths.
|
||||
*
|
||||
* Only works in the 'prerender' environment - returns no-op in other environments.
|
||||
*/
|
||||
export default function vitePluginStaticPaths(): Plugin;
|
||||
35
node_modules/astro/dist/vite-plugin-static-paths/index.js
generated
vendored
Normal file
35
node_modules/astro/dist/vite-plugin-static-paths/index.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { ASTRO_VITE_ENVIRONMENT_NAMES } from "../core/constants.js";
|
||||
const ASTRO_STATIC_PATHS_MODULE_ID = "astro:static-paths";
|
||||
const ASTRO_STATIC_PATHS_RESOLVED_ID = "\0" + ASTRO_STATIC_PATHS_MODULE_ID;
|
||||
function vitePluginStaticPaths() {
|
||||
return {
|
||||
name: "astro:static-paths",
|
||||
enforce: "pre",
|
||||
resolveId: {
|
||||
filter: {
|
||||
id: new RegExp(`^${ASTRO_STATIC_PATHS_MODULE_ID}$`)
|
||||
},
|
||||
handler() {
|
||||
return ASTRO_STATIC_PATHS_RESOLVED_ID;
|
||||
}
|
||||
},
|
||||
load: {
|
||||
filter: {
|
||||
id: new RegExp(`^${ASTRO_STATIC_PATHS_RESOLVED_ID}$`)
|
||||
},
|
||||
handler() {
|
||||
if (this.environment?.name !== ASTRO_VITE_ENVIRONMENT_NAMES.prerender) {
|
||||
return {
|
||||
code: `export class StaticPaths { async getAll() { return []; } }`
|
||||
};
|
||||
}
|
||||
return {
|
||||
code: `export { StaticPaths } from 'astro/runtime/prerender/static-paths.js';`
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
vitePluginStaticPaths as default
|
||||
};
|
||||
Reference in New Issue
Block a user