UNPKG

seia.js

Version:

Lightweight SSR framework for React Server Components

4 lines (3 loc) 233 B
// Manual code splitting because of rollup's limitations import { basename, dirname, extname, join } from 'node:path'; export const changeExtension = (path, extension)=>join(dirname(path), basename(path, extname(path)) + extension);