-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
33 lines (32 loc) 路 765 Bytes
/
Copy pathtsdown.config.ts
File metadata and controls
33 lines (32 loc) 路 765 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
33
import { defineConfig } from "tsdown";
import isInCi from "is-in-ci";
import { visualizer } from "rollup-plugin-visualizer";
export default defineConfig({
entry: {
extension: "src/extension.ts"
},
format: ["cjs"],
outExtensions: () => ({
js: ".js"
}),
platform: "node",
dts: false,
clean: false,
publint: true,
deps: {
alwaysBundle: ["entities/decode", "unicode-case-folding"],
neverBundle: ["vscode"],
onlyBundle: ["entities", "unicode-case-folding"]
},
plugins: [
visualizer({
open:
process.env["VISUALIZER_OPEN"] === undefined
? !isInCi
: process.env["VISUALIZER_OPEN"] === "true",
filename: ".cache/stats.html",
gzipSize: true,
brotliSize: true
})
]
});