diff --git a/libs/zhi-device/vite.config.ts b/libs/zhi-device/vite.config.ts index abf3975b..36a6fcc3 100644 --- a/libs/zhi-device/vite.config.ts +++ b/libs/zhi-device/vite.config.ts @@ -5,13 +5,10 @@ import { join } from "path" import { viteStaticCopy } from "vite-plugin-static-copy" // import viteTsConfigPaths from "vite-tsconfig-paths" import dts from "vite-plugin-dts" -import noBundlePlugin from "vite-plugin-no-bundle" // https://vitejs.dev/config/ export default defineConfig({ plugins: [ - noBundlePlugin(), - dts({ entryRoot: "src", tsConfigFilePath: join(__dirname, "tsconfig.json"), @@ -47,6 +44,7 @@ export default defineConfig({ lib: { // Could also be a dictionary or array of multiple entry points. entry: "src/index.ts", + name: "zhiDevice", fileName: "index", // Change this to the formats you want to support. // Don't forgot to update your package.json as well. diff --git a/libs/zhi-env/vite.config.ts b/libs/zhi-env/vite.config.ts index 6115c8e4..a5c35abe 100644 --- a/libs/zhi-env/vite.config.ts +++ b/libs/zhi-env/vite.config.ts @@ -5,13 +5,10 @@ import { join } from "path" import { viteStaticCopy } from "vite-plugin-static-copy" // import viteTsConfigPaths from "vite-tsconfig-paths" import dts from "vite-plugin-dts" -import noBundlePlugin from "vite-plugin-no-bundle" // https://vitejs.dev/config/ export default defineConfig({ plugins: [ - noBundlePlugin(), - dts({ entryRoot: "src", tsConfigFilePath: join(__dirname, "tsconfig.json"), diff --git a/libs/zhi-publisher-sdk/vite.config.ts b/libs/zhi-publisher-sdk/vite.config.ts index fbaeb15b..5b50f096 100644 --- a/libs/zhi-publisher-sdk/vite.config.ts +++ b/libs/zhi-publisher-sdk/vite.config.ts @@ -3,10 +3,9 @@ import { resolve } from "path" import { defineConfig } from "vite" import dts from "vite-plugin-dts" -import noBundlePlugin from "vite-plugin-no-bundle" export default defineConfig({ - plugins: [noBundlePlugin(), dts()], + plugins: [dts()], build: { lib: {