Skip to content

Commit

Permalink
🔧 chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 15, 2023
1 parent e7296c4 commit e69bb5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'dumi';
import path from 'node:path';

import { description, homepage, name } from './package.json';

Expand Down Expand Up @@ -41,6 +42,9 @@ const themeConfig = {
};

export default defineConfig({
alias: {
'@lobehub/tts/react': path.join(__dirname, './src/react'),
},
apiParser: isProduction ? {} : false,
base: '/',
define: {
Expand All @@ -53,7 +57,7 @@ export default defineConfig({
publicPath: '/',
resolve: {
atomDirs: [{ dir: 'src/react', type: 'component' }],
entryFile: isProduction ? './src/index.ts' : undefined,
entryFile: isProduction ? './src/react/index.ts' : undefined,
},
styles: [
`html, body { background: transparent; }
Expand Down

0 comments on commit e69bb5f

Please sign in to comment.