-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathtsdown.config.mjs
More file actions
35 lines (33 loc) · 921 Bytes
/
tsdown.config.mjs
File metadata and controls
35 lines (33 loc) · 921 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
34
35
// @ts-check
import { defineConfig } from 'tsdown'
export default defineConfig([
{
entry: {
extension: './packages/extension/src/extension.ts',
worker: './packages/extension/src/worker/index.ts',
workerLegacy: './packages/worker-legacy/src/index.ts',
workerNew: './packages/worker/src/index.ts',
},
external: ['vscode'],
format: 'cjs',
fixedExtension: false,
inlineOnly: false,
platform: 'node',
define: {
'process.env.EXTENSION_NODE_ENV': JSON.stringify(
process.env.EXTENSION_NODE_ENV || 'production',
),
},
},
{
entry: [
'./packages/extension/src/worker/browserSetupFile.ts',
'./packages/extension/src/worker/browserSetupFileLegacy.ts',
],
external: ['vitest', '@vitest/browser/context', 'vitest/browser'],
fixedExtension: false,
inlineOnly: false,
platform: 'node',
format: 'esm',
},
])