Skip to content

Commit

Permalink
Merge pull request alibaba#1735 from miracles1919/doc/sandbox
Browse files Browse the repository at this point in the history
fix: add codesandbox dependencies
  • Loading branch information
crazylxr authored Jul 6, 2022
2 parents 0579e84 + b34a6bc commit c6633b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dumi/theme/builtins/Previewer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Previewer from 'dumi-theme-default/src/builtins/Previewer';

// hack dumi dep collect error in pnpm
export default (props) => {
const dependencies = Object.assign({}, props.dependencies, {
ahooks: {
version: 'latest',
},
});

return <Previewer {...props} dependencies={dependencies} />;
};

0 comments on commit c6633b3

Please sign in to comment.