From 481e66461ba8de3d294930177b50c7d0341f3146 Mon Sep 17 00:00:00 2001
From: jaywcjlove <398188662@qq.com>
Date: Fri, 22 Mar 2024 19:31:17 +0800
Subject: [PATCH] website(deps): update dependency
@uiw/react-markdown-preview-example to v2 #48
---
test/switch.test.tsx | 4 ++--
www/.kktrc.ts | 5 +++++
www/package.json | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/test/switch.test.tsx b/test/switch.test.tsx
index 9fd2a82..7c43f12 100644
--- a/test/switch.test.tsx
+++ b/test/switch.test.tsx
@@ -29,7 +29,7 @@ it('', () => {
expect(container.innerHTML).toEqual('preschool');
});
-it('', () => {
+it(' 1', () => {
const { container } = render(
preschool
@@ -40,7 +40,7 @@ it('', () => {
expect(container.innerHTML).toEqual('preschool');
});
-it('', () => {
+it(' 2', () => {
const { container } = render(
preschool
diff --git a/www/.kktrc.ts b/www/.kktrc.ts
index 5b9f2b4..520bb28 100644
--- a/www/.kktrc.ts
+++ b/www/.kktrc.ts
@@ -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 = {
diff --git a/www/package.json b/www/package.json
index cb8f57c..7183195 100644
--- a/www/package.json
+++ b/www/package.json
@@ -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"