mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import {defineConfig} from "tsup";
|
|
import {findUpSync} from "find-up";
|
|
|
|
export default defineConfig({
|
|
clean: true,
|
|
minify: false,
|
|
treeshake: false,
|
|
format: ["cjs", "esm"],
|
|
outExtension(ctx) {
|
|
return {js: `.${ctx.format}.js`};
|
|
},
|
|
inject: process.env.JSX ? [findUpSync("react-shim.js")!] : undefined,
|
|
});
|