INNER CODE UNIT · TypeScript

defineConfig

damianricobelli/stepperize · packages/react/tsup.config.ts:3

export default defineConfig((options) => ({
	entry: ["src/index.ts", "src/headless.ts", "src/primitives/index.ts"],
	format: ["esm"],
	// tsup injects baseUrl internally; only its TS6 declaration worker needs this.
	dts: { compilerOptions: { ignoreDeprecations: "6.0" } },
	sourcemap: false,
	clean: !options.watch,
	minify: true,
	treeshake: true,
	splitting: true,
	external: ["@stepperize/core", "react", "react-dom", "react/jsx-runtime"],
	tsconfig: "tsconfig.json",
}));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…