Skip to content

Commit

Permalink
fix(projects): fix ts template alias
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 7, 2023
1 parent 77f8c55 commit e917fd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-soybean/template-ts-lib/build.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { URL, fileURLToPath } from 'node:url';
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
alias: {
'@': './src'
'@': fileURLToPath(new URL('./src', import.meta.url))
},
entries: ['src/index'],
clean: true,
Expand Down

0 comments on commit e917fd8

Please sign in to comment.