Skip to content

Commit

Permalink
website(deps): update dependency @uiw/react-markdown-preview-example …
Browse files Browse the repository at this point in the history
…to v2 #48
  • Loading branch information
jaywcjlove committed Mar 22, 2024
1 parent e750f70 commit 481e664
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/switch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ it('<Case />', () => {
expect(container.innerHTML).toEqual('preschool');
});

it('<Case />', () => {
it('<Case /> 1', () => {
const { container } = render(
<Switch>
<Case condition={true}>preschool</Case>
Expand All @@ -40,7 +40,7 @@ it('<Case />', () => {
expect(container.innerHTML).toEqual('preschool');
});

it('<Case />', () => {
it('<Case /> 2', () => {
const { container } = render(
<Switch>
<Case condition={false}>preschool</Case>
Expand Down
5 changes: 5 additions & 0 deletions www/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export default (conf: WebpackConfiguration, env: 'production' | 'development', o
}),
);
conf.module!.exprContextCritical = false;
conf.ignoreWarnings = [
{
module: /node_modules[\\/]parse5[\\/]/,
},
];
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
conf.optimization = {
Expand Down
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"map": "source-map-explorer build/static/js/*.js --html build/website-result.html"
},
"dependencies": {
"@uiw/react-markdown-preview-example": "^1.3.1",
"@uiw/react-markdown-preview-example": "^2.1.4",
"@uiw/react-only-when": "2.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down

0 comments on commit 481e664

Please sign in to comment.