diff --git a/vite.lib.config.ts b/vite.lib.config.ts index 84c43ac..6149a18 100644 --- a/vite.lib.config.ts +++ b/vite.lib.config.ts @@ -25,12 +25,12 @@ export default defineConfig({ }, emptyOutDir: true, rollupOptions: { - external: [...Object.keys(pkg.dependencies)], + external: Object.keys({ ...pkg.dependencies, ...pkg.devDependencies }), output: { globals: { ...(() => { const obj: Record = {} - Object.keys(pkg.dependencies).forEach((key) => { + Object.keys({ ...pkg.dependencies, ...pkg.devDependencies }).forEach((key) => { obj[key] = key }) return obj