mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
cf532daf20
* (flags) remove index from exports * Update tsup.config, use clean:true instead of rimraf * Add changeset * pnpm-lock * update tsup config, remove unused provider entrypoints * tsup.config: update entry format * Add attw check in CI * Update .changeset/tidy-schools-retire.md --------- Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
25 lines
576 B
JavaScript
25 lines
576 B
JavaScript
import { defineConfig } from 'tsup';
|
|
|
|
const defaultConfig = {
|
|
format: ['esm', 'cjs'],
|
|
splitting: true,
|
|
sourcemap: true,
|
|
minify: false,
|
|
clean: true,
|
|
skipNodeModulesBundle: true,
|
|
dts: true,
|
|
external: [/^node:.*/, 'node_modules'],
|
|
};
|
|
|
|
// eslint-disable-next-line import/no-default-export -- [@vercel/style-guide@5 migration]
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
next: 'src/next/index.ts',
|
|
sveltekit: 'src/sveltekit/index.ts',
|
|
react: 'src/react/index.tsx',
|
|
analytics: 'src/analytics.ts',
|
|
},
|
|
...defaultConfig,
|
|
});
|