Skip to content

Commit

Permalink
fix: custom theme not working (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainstar authored Nov 2, 2023
1 parent 9d05a0c commit 9659d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-penguins-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rspress/core': patch
---

fix: use theme alias path
2 changes: 1 addition & 1 deletion packages/core/src/runtime/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import globalComponents from 'virtual-global-components';
import 'virtual-global-styles';

// eslint-disable-next-line import/no-commonjs
const { default: Theme } = require('@rspress/theme-default');
const { default: Theme } = require('@theme');

type RspressPageMeta = Record<
string,
Expand Down

0 comments on commit 9659d65

Please sign in to comment.