@duckalization/bundler-plugin
v0.1.0
Published
Build-time ID injection for duckalization: pre-bakes content-derived IDs into __() calls so no hashing ships to the client.
Maintainers
Readme
@duckalization/bundler-plugin
Optional unplugin transform. Rewrites __('Sign in') to include the
content-derived ID at build time so the runtime never hashes and the hash
implementation tree-shakes out of the client bundle. Apps behave the same
without it.
pnpm add -D @duckalization/bundler-pluginimport { defineConfig } from 'vite';
import DuckalizationPlugin from '@duckalization/bundler-plugin';
export default defineConfig({
plugins: [DuckalizationPlugin.vite()],
});Also: .rollup(), .webpack(), .esbuild(), plus rspack, rolldown, and
farm via unplugin.
Complete usage guide: duckalization README.
Agents: llms.txt.
