Skip to content

Commit

Permalink
Fix(Vue): Could not find a declaration file for module
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Feb 14, 2024
1 parent 22d43c9 commit 9f3ccad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"e2e/**/*.vue",
"e2e/**/*.ts",
"vue.shims.d.ts"
]
}
9 changes: 5 additions & 4 deletions packages/vue/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite';
import { resolve } from 'path';
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite'
import { resolve } from 'path'
import vue from '@vitejs/plugin-vue'
import pkg from './package.json'

// https://vitejs.dev/config/
Expand All @@ -10,6 +10,7 @@ export default defineConfig({
lib: {
entry: [
resolve(__dirname, 'src/CSSRuntimeProvider.ts'),
resolve(__dirname, 'src/ThemeServiceProvider.ts'),
resolve(__dirname, 'src/index.ts'),
],
formats: ['cjs', 'es']
Expand All @@ -18,4 +19,4 @@ export default defineConfig({
external: ['vue', ...Object.keys(pkg.dependencies)]
},
},
});
})

0 comments on commit 9f3ccad

Please sign in to comment.