Update build config so imports work as expected
This commit is contained in:
@@ -10,7 +10,7 @@ import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
import { peerDependencies } from "./package.json";
|
||||
|
||||
|
||||
const modules = [ "button", "input", "loading", "message", "modal", "nav", "progress", "tab", "toaster" ];
|
||||
const modules = [ "button", "input", "loading", "message", "modal", "nav", "progress", "tab", "theme", "toaster" ];
|
||||
|
||||
|
||||
// https://vite.dev/config/
|
||||
@@ -51,7 +51,7 @@ export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: {
|
||||
index: resolve(__dirname, "lib/index.ts"),
|
||||
"mattrixwv-components": resolve(__dirname, "lib/index.ts"),
|
||||
...Object.fromEntries(modules.map(mod => [mod, resolve(__dirname, `lib/component/${mod}/index.ts`)]))
|
||||
},
|
||||
formats: [ "es" ],
|
||||
|
||||
Reference in New Issue
Block a user