diff --git a/examples/webpack-demo/package.json b/examples/webpack-demo/package.json
index 3afe71cd..f39ea805 100644
--- a/examples/webpack-demo/package.json
+++ b/examples/webpack-demo/package.json
@@ -12,8 +12,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-config": "^5.1.1",
- "react-router-dom": "^6.22.3",
- "shiki": "^1.1.7"
+ "react-router-dom": "^6.22.3"
},
"devDependencies": {
"@babel/core": "^7.24.0",
diff --git a/packages/canyon-platform/package.json b/packages/canyon-platform/package.json
index 5b4e41ac..9c01bcd7 100644
--- a/packages/canyon-platform/package.json
+++ b/packages/canyon-platform/package.json
@@ -35,7 +35,6 @@
"react-dom": "^18.3.1",
"react-highlight-words": "^0.20.0",
"react-i18next": "^14.1.2",
- "shiki": "^1.10.3",
"react-router-dom": "^6.24.0"
},
"devDependencies": {
@@ -48,8 +47,6 @@
"@typescript-eslint/parser": "^7.16.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"autoprefixer": "^10.4.19",
- "babel-plugin-canyon": "^1.8.46",
- "babel-plugin-istanbul": "^7.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
diff --git a/packages/canyon-platform/src/components/CanyonReport/CoverageDetail.tsx b/packages/canyon-platform/src/components/CanyonReport/CoverageDetail.tsx
index abc61f0a..4bad43b7 100644
--- a/packages/canyon-platform/src/components/CanyonReport/CoverageDetail.tsx
+++ b/packages/canyon-platform/src/components/CanyonReport/CoverageDetail.tsx
@@ -1,4 +1,3 @@
-import { getViewLineHeight } from '../../helpers/utils/getViewLineHeight.tsx';
import { coreFn } from './helper.tsx';
import LineCoverage from './line/coverage.tsx';
import LineNew from './line/new.tsx';
@@ -6,7 +5,6 @@ import LineNumber from './line/number.tsx';
import ShikiDetail from './ShikiDetail.tsx';
const CanyonReportCoverageDetail = ({ data, theme }: any) => {
- const viewLineHeight = getViewLineHeight();
const code = data.sourcecode;
const { lines } = coreFn(data.coverage, code);
return (
@@ -16,8 +14,7 @@ const CanyonReportCoverageDetail = ({ data, theme }: any) => {
style={{
display: 'flex',
fontSize: '12px',
- lineHeight: '14px',
- visibility: viewLineHeight > 0 ? 'visible' : 'hidden',
+ lineHeight: '14px'
// backgroundColor: theme === 'dark' ? '#1a1b26' : 'white',
}}
>
@@ -46,7 +43,6 @@ const CanyonReportCoverageDetail = ({ data, theme }: any) => {
/>