mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Complete configuration for build
This commit is contained in:
@@ -31,24 +31,25 @@ export default defineConfig({
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: {
|
||||
button: resolve(__dirname, "lib/component/button.ts"),
|
||||
input: resolve(__dirname, "lib/component/input.ts"),
|
||||
loading: resolve(__dirname, "lib/component/loading.ts"),
|
||||
message: resolve(__dirname, "lib/component/message.ts"),
|
||||
modal: resolve(__dirname, "lib/component/modal.ts"),
|
||||
nav: resolve(__dirname, "lib/component/nav.ts"),
|
||||
tab: resolve(__dirname, "lib/component/tab.ts"),
|
||||
theme: resolve(__dirname, "lib/component/theme.ts"),
|
||||
toaster: resolve(__dirname, "lib/component/toaster.ts")
|
||||
},
|
||||
entry: resolve(__dirname, "lib/index.ts"),
|
||||
formats: [ "es" ],
|
||||
name: "Mattrixwv Component Library"
|
||||
},
|
||||
rollupOptions: {
|
||||
external: [
|
||||
Object.keys(dependencies).join("|")
|
||||
]
|
||||
"react",
|
||||
"react-dom",
|
||||
"react/jsx-runtime",
|
||||
...Object.keys(dependencies)
|
||||
],
|
||||
output: {
|
||||
globals: {
|
||||
react: "React",
|
||||
"react-dom": "ReactDOM"
|
||||
},
|
||||
manualChunks: undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
publicDir: false
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user