-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts.timestamp-1720187840692-5e1487302bcdd.mjs
73 lines (73 loc) · 6.72 KB
/
vite.config.ts.timestamp-1720187840692-5e1487302bcdd.mjs
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
68
69
70
71
72
73
// vite.config.ts
import { defineConfig } from "file:///C:/Solutions/nopwd_library/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Solutions/nopwd_library/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import * as path from "path";
import typescript2 from "file:///C:/Solutions/nopwd_library/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js";
import dts from "file:///C:/Solutions/nopwd_library/node_modules/vite-plugin-dts/dist/index.mjs";
import copy from "file:///C:/Solutions/nopwd_library/node_modules/rollup-plugin-copy/dist/index.commonjs.js";
var __vite_injected_original_dirname = "C:\\Solutions\\nopwd_library";
var vite_config_default = defineConfig({
plugins: [
vue(),
dts({
insertTypesEntry: true
}),
typescript2({
check: false,
include: ["src/components/**/*.vue"],
tsconfigOverride: {
compilerOptions: {
outDir: "dist",
sourceMap: true,
declaration: true,
declarationMap: true
}
},
exclude: ["vite.config.ts"]
}),
copy({
// Add this plugin configuration
targets: [
{ src: "src/assets/*.png", dest: "dist/assets" }
]
})
],
build: {
cssCodeSplit: true,
lib: {
// Could also be a dictionary or array of multiple entry points
entry: "src/components/main.ts",
name: "nnopwdVue3Library",
formats: ["es", "cjs", "umd"],
fileName: (format) => `nopwdVue3Library.${format}.js`
},
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
input: {
main: path.resolve(__vite_injected_original_dirname, "src/components/main.ts")
},
external: ["vue"],
output: {
assetFileNames: (assetInfo) => {
if (assetInfo.name === "main.css")
return "nopwdVue3Library.css";
return assetInfo.name || "default-name";
},
exports: "named",
globals: {
vue: "Vue"
}
}
}
},
resolve: {
alias: {
"@": path.resolve(__vite_injected_original_dirname, "src")
}
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxTb2x1dGlvbnNcXFxcbm9wd2RfbGlicmFyeVwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcU29sdXRpb25zXFxcXG5vcHdkX2xpYnJhcnlcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1NvbHV0aW9ucy9ub3B3ZF9saWJyYXJ5L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXHJcbmltcG9ydCAqIGFzIHBhdGggZnJvbSAncGF0aCdcclxuaW1wb3J0IHR5cGVzY3JpcHQyIGZyb20gJ3JvbGx1cC1wbHVnaW4tdHlwZXNjcmlwdDInXHJcbmltcG9ydCBkdHMgZnJvbSBcInZpdGUtcGx1Z2luLWR0c1wiXHJcbmltcG9ydCBjb3B5IGZyb20gJ3JvbGx1cC1wbHVnaW4tY29weSdcclxuXHJcbi8vIGh0dHBzOi8vdml0ZWpzLmRldi9jb25maWcvXHJcbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XHJcbiAgcGx1Z2luczogW1xyXG4gICAgdnVlKCksXHJcbiAgICBkdHMoe1xyXG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