-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsdown.config.mts
More file actions
67 lines (64 loc) · 1.61 KB
/
tsdown.config.mts
File metadata and controls
67 lines (64 loc) · 1.61 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import { fileURLToPath } from 'node:url'
import sass from 'rollup-plugin-sass'
import { defineConfig } from 'tsdown/config'
import Vue from 'unplugin-vue/rolldown'
import pkg from './package.json' with { type: 'json' }
const v0 = fileURLToPath(new URL('../../0/src', import.meta.url))
const paper = fileURLToPath(new URL('../src', import.meta.url))
const __VERSION__ = JSON.stringify(pkg.version)
export default defineConfig([{
plugins: [
Vue({ isProduction: true }),
sass({
api: 'modern',
output: 'dist/index.css',
}),
],
platform: 'browser',
dts: false,
define: {
__DEV__: 'false',
__VITE_LOGGER_ENABLED__: 'false',
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
__VERSION__,
},
name: 'vuetify/paper',
alias: {
'#v0': v0,
'#paper': paper,
},
outDir: './dist/browser',
}, {
plugins: [
Vue({ isProduction: true }),
sass({
api: 'modern',
output: 'dist/index.css',
}),
],
dts: {
vue: true,
},
define: {
__DEV__: 'process.env.NODE_ENV !== \'production\'',
__VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED',
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
__VERSION__,
},
name: 'vuetify/paper',
exports: {
devExports: 'development',
customExports (pkg, ctx) {
pkg['./browser'] = ctx.isPublish ? './dist/browser/index.js' : { ...pkg['.'], default: './dist/browser/index.js' }
return pkg
},
},
alias: {
'#v0': v0,
'#paper': paper,
},
}])