Skip to content

Commit 233afca

Browse files
authored
chore: fix alias for docs demos (#713)
1 parent 7e344f2 commit 233afca

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.dumirc.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// more config: https://d.umijs.org/config
22
import { defineConfig } from 'dumi';
3+
import path from 'path';
34

45
const basePath = process.env.GITHUB_ACTIONS ? '/util/' : '/';
56
const publicPath = process.env.GITHUB_ACTIONS ? '/util/' : '/';
@@ -14,4 +15,7 @@ export default defineConfig({
1415
exportStatic: {},
1516
base: basePath,
1617
publicPath,
18+
alias: {
19+
'rc-util/es': path.resolve(__dirname, 'src'),
20+
},
1721
});

docs/examples/focus.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useRef } from 'react';
22
import { useLockFocus } from '../../src/Dom/focus';
3-
import './focus.css';
43

54
export default function FocusDemo() {
65
const containerRef = useRef<HTMLDivElement>(null);

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"paths": {
1111
"@/*": ["src/*"],
1212
"@@/*": ["src/.dumi/*"],
13-
"rc-util": ["src/index.tsx"],
13+
"rc-util": ["src/index.ts"],
1414
"rc-util/es/*": ["src/*"]
1515
}
1616
}

0 commit comments

Comments
 (0)