forked from lhapaipai/vite-plugin-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.js
More file actions
32 lines (31 loc) · 814 Bytes
/
Copy pathtsup.config.js
File metadata and controls
32 lines (31 loc) · 814 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
28
29
30
31
32
import { defineConfig } from "tsup";
export default defineConfig({
entry: [
"src/index.ts",
"src/stimulus/helpers/index.ts",
"src/stimulus/helpers/vue/index.ts",
"src/stimulus/helpers/react/index.ts",
"src/stimulus/helpers/svelte/index.ts",
"src/stimulus/helpers/svelte4/index.ts",
"src/stimulus/helpers/react/render_controller.ts",
"src/stimulus/helpers/svelte/render_controller.ts",
"src/stimulus/helpers/svelte4/render_controller.ts",
],
dts: true,
format: ["esm", "cjs"],
esbuildOptions(options) {
options.external = [
"picocolors",
"fast-glob",
"@hotwired/stimulus",
"virtual:symfony/controllers",
"vue",
"react",
"react-dom/client",
"svelte",
];
},
shims: true,
clean: true,
splitting: false,
});