-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts.js
41 lines (41 loc) · 3.38 KB
/
vite.config.ts.js
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
// vite.config.ts
import vue from "@vitejs/plugin-vue";
import typescript2 from "rollup-plugin-typescript2";
import {
resolve
} from "path";
import { defineConfig } from "vite";
module.exports = defineConfig({
build: {
lib: {
entry: resolve("/Users/danielcoelho/Projects/other/vue-file-uploader", "src/modules/VueFileUploaderPlugin.ts"),
formats: ["es", "cjs"],
name: "VueFileUploader",
fileName: (format) => format === "es" ? "index.js" : "index.cjs"
},
rollupOptions: {
external: ["vue"],
output: {
globals: {
vue: "Vue"
}
}
}
},
plugins: [
vue(),
typescript2({
check: false,
include: [resolve("/Users/danielcoelho/Projects/other/vue-file-uploader", "src/modules/**/*.vue")],
exclude: [resolve("/Users/danielcoelho/Projects/other/vue-file-uploader", "vite.config.ts")],
tsconfigOverride: {
compilerOptions: {
sourceMap: true,
declaration: true,
declarationMap: true
}
}
})
]
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJztcbmltcG9ydCB0eXBlc2NyaXB0MiBmcm9tICdyb2xsdXAtcGx1Z2luLXR5cGVzY3JpcHQyJztcbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCc7XG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJztcblxubW9kdWxlLmV4cG9ydHMgPSBkZWZpbmVDb25maWcoe1xuICBidWlsZDoge1xuICAgIGxpYjoge1xuICAgICAgZW50cnk6IHBhdGgucmVzb2x2ZShcIi9Vc2Vycy9kYW5pZWxjb2VsaG8vUHJvam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