-
Notifications
You must be signed in to change notification settings - Fork 4
/
tsup.config.ts
39 lines (38 loc) · 1.18 KB
/
tsup.config.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "tsup";
export default defineConfig([
{
entry: [
"src/index.ts",
"src/plugins/next-image/alias/next-image.tsx",
"src/plugins/next-image/alias/next-legacy-image.tsx",
"src/plugins/next-image/alias/image-default-loader.tsx",
"src/plugins/next-image/alias/image-context.tsx",
"src/plugins/next-mocks/alias/headers/cookies.ts",
"src/plugins/next-mocks/alias/headers/headers.ts",
"src/plugins/next-mocks/alias/headers/index.ts",
"src/plugins/next-mocks/alias/cache/index.ts",
"src/plugins/next-mocks/alias/navigation/index.ts",
"src/plugins/next-mocks/alias/router/index.ts",
"src/plugins/next-mocks/alias/rsc/server-only.ts",
"src/plugins/next-mocks/alias/dynamic/index.tsx",
"src/mocks/storybook.global.ts",
],
splitting: false,
clean: true,
format: ["esm", "cjs"],
treeshake: true,
dts: true,
target: "node18",
external: [
"sb-original/image-context",
"sb-original/default-loader",
"storybook",
"@storybook/test-runner",
"@storybook/nextjs",
"@storybook/test",
"react",
"sharp",
"next",
],
},
]);