mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
17 lines
357 B
TypeScript
17 lines
357 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts', 'src/client/index.ts'],
|
|
format: ['cjs', 'esm'],
|
|
splitting: false,
|
|
clean: true,
|
|
external: ['#app'],
|
|
dts: true,
|
|
// @ts-expect-error: Missing type
|
|
outExtension({ format }) {
|
|
return {
|
|
js: format === 'esm' ? '.mjs' : `.${format}`,
|
|
}
|
|
},
|
|
})
|