iles
Version:
Vite & Vue powered static site generator with partial hydration
12 lines (9 loc) • 402 B
JavaScript
// 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.js')
const config = await resolveConfig(root)
return mergeConfig(config.vite, {
plugins: IslandsPlugins(config),
})
}