OpenPanel/packages/mui/tsup.config.ts

26 lines
701 B
TypeScript
Raw Normal View History

2024-05-08 17:58:53 +00:00
import { defineConfig } from "tsup";
import { lodashReplacePlugin } from "../shared/lodash-replace-plugin";
import { markAsExternalPlugin } from "../shared/mark-as-external-plugin";
import { removeTestIdsPlugin } from "../shared/remove-test-ids-plugin";
export default defineConfig({
entry: ["src/index.tsx"],
splitting: false,
sourcemap: true,
clean: false,
platform: "browser",
esbuildPlugins: [
removeTestIdsPlugin,
lodashReplacePlugin,
markAsExternalPlugin,
],
loader: {
".svg": "dataurl",
},
esbuildOptions(options) {
options.keepNames = true;
},
onSuccess: "tsc --project tsconfig.declarations.json",
});