forked from better-auth-ui/better-auth-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
27 lines (26 loc) · 813 Bytes
/
tsup.config.ts
File metadata and controls
27 lines (26 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { preserveDirectivesPlugin } from "esbuild-plugin-preserve-directives"
import { defineConfig } from "tsup"
export default defineConfig((env) => {
return {
entry: {
index: "./src/index.ts",
server: "./src/server.ts",
tanstack: "./src/tanstack.ts",
instantdb: "./src/instantdb.ts",
triplit: "./src/triplit.ts"
},
format: ["esm", "cjs"],
splitting: true,
cjsInterop: true,
skipNodeModulesBundle: true,
treeshake: false,
metafile: true,
esbuildPlugins: [
preserveDirectivesPlugin({
directives: ["use client", "use strict"],
include: /\.(js|ts|jsx|tsx)$/,
exclude: /node_modules/
})
]
}
})