-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.config.mts
More file actions
36 lines (35 loc) · 919 Bytes
/
build.config.mts
File metadata and controls
36 lines (35 loc) · 919 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
36
import { defineBuildConfig } from "unbuild";
export default defineBuildConfig({
// If entries is not provided, will be automatically inferred from package.json
entries: [
// default
"./src/index",
"./src/mDNS",
{
builder: "copy",
input: "./src/api/ciderapi-types/",
outDir: "./build/api/ciderapi-types/",
// loaders: ['vue'],
},
{
builder: "copy",
input: "./src/vue/",
outDir: "./build/vue",
// loaders: ['vue'],
},
// mkdist builder transpiles file-to-file keeping original sources structure
// {
// builder: "mkdist",
// format: "esm",
// input: "./src/api/",
// outDir: "./build/api",
// // loaders: ['vue'],
// },
],
externals: ['vue', 'lodash'],
// Change outDir, default is 'dist'
outDir: "build",
failOnWarn: false,
// Generates .d.ts declaration file
declaration: true,
});