@hyperpackai/core
v0.3.0
Published
HyperPack core — config resolution, module transforms, production builds, and plugin system.
Maintainers
Readme
@hyperpackai/core
HyperPack core — config, transforms, builds, and plugins.
The foundational package of the HyperPack toolchain. Handles project config resolution, TypeScript/TSX transformation via esbuild, production builds, CSS Modules, and the plugin API.
Install
npm install @hyperpackai/coreUsage
import { resolveConfig, buildProject, transformSource } from "@hyperpackai/core";
const config = await resolveConfig(process.cwd(), { mode: "production" });
await buildProject(config);Plugin API
import type { HyperPackPlugin } from "@hyperpackai/core";
const myPlugin: HyperPackPlugin = {
name: "my-plugin",
transform(code, id) {
if (!id.endsWith(".vue")) return null;
return { code: transformVue(code) };
}
};Requirements
Node.js ≥ 20
