We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c05ef4 commit 9e9a6b0Copy full SHA for 9e9a6b0
vite.config.js
@@ -11,7 +11,15 @@ export default defineConfig({
11
plugins: [
12
react(),
13
libInjectCss(),
14
- dts({ include: ['src'], exclude: ['src/**/*.stories.tsx'] })
+ dts({
15
+ include: ['src'],
16
+ exclude: ['src/**/*.stories.tsx'],
17
+ afterDiagnostic: (diagnostics) => {
18
+ if (diagnostics.length > 0) {
19
+ throw new Error("dts failed");
20
+ }
21
+ },
22
+ })
23
],
24
build: {
25
lib: {
0 commit comments