Skip to content

Commit

Permalink
[chore]: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
0x009922 committed Mar 13, 2023
1 parent af6ac34 commit c1145a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function checkAutoImportedTypesPlugin(checkDts = resolve('auto-imports.d.ts')):
apply: 'build',
async closeBundle() {
const content = await fs.readFile(checkDts, { encoding: 'utf-8' })
if (testExportType(content)) this.error(`Type export is detected in auto-imports (file: ${path.relative(process.cwd(), checkDts)})`)
if (testExportType(content))
this.error(`Type export is detected in auto-imports (file: ${path.relative(process.cwd(), checkDts)})`)
},
}
}
Expand Down Expand Up @@ -148,7 +149,7 @@ export default defineConfig({
enabled: true,
},
}),
checkAutoImportedTypesPlugin()
checkAutoImportedTypesPlugin(),
],
build: {
sourcemap: true,
Expand Down

0 comments on commit c1145a0

Please sign in to comment.