UNPKG

iles

Version:

Vite & Vue powered static site generator with partial hydration

12 lines (9 loc) 403 B
// NOTE: This helper file allows to provide it as a config path to Vite or // Vitest without using the iles executable. export default async (env, root = process.cwd()) => { const { default: IslandsPlugins, resolveConfig, mergeConfig } = await import('./dist/node/index.mjs') const config = await resolveConfig(root) return mergeConfig(config.vite, { plugins: IslandsPlugins(config), }) }