-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
23 lines (21 loc) · 675 Bytes
/
tsdown.config.ts
File metadata and controls
23 lines (21 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import path, { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'tsdown';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig(options => (
{
entry: ['src/index.ts'],
format: ['cjs'],
sourcemap: options.env?.NODE_ENV === 'development',
clean: true,
alias: {
'vue-hook-optimizer': path.resolve(__dirname, '../../packages/core/src'),
'@vue/compiler-sfc': path.resolve(__dirname, '../../node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'),
},
external: [
'vscode',
],
minify: true,
}),
);