Skip to content

Commit

Permalink
build: upgrade to ts 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jun 21, 2024
1 parent 13a5d68 commit 6d4cd11
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 198 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/types": "^19.0.3",
"@types/node": "^20.14.5",
"@types/node": "^20.14.7",
"@types/webpack-env": "^1.18.5",
"@vitest/coverage-istanbul": "^1.6.0",
"bumpp": "^9.4.1",
Expand All @@ -50,7 +50,7 @@
"sort-package-json": "^2.10.0",
"tsconfig-vuepress": "^4.5.0",
"tsup": "^8.1.0",
"typescript": "^5.4.5",
"typescript": "^5.5.2",
"vite": "~5.3.1",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.21"
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"vue": "^3.4.29",
"vue-loader": "^17.4.2",
"vue-router": "^4.3.3",
"webpack": "^5.92.0",
"webpack": "^5.92.1",
"webpack-5-chain": "^8.0.2",
"webpack-dev-server": "^5.0.4",
"webpack-merge": "^5.10.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown/src/plugins/assetsPlugin/assetsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const assetsPlugin: PluginWithOptions<AssetsPluginOptions> = (
tokens[idx].content = tokens[idx].content
// handle src
.replace(
/(<img\b.*?src=)(['"])([^\2]*?)\2/gs,
/(<img\b.*?src=)(['"])(.*?)\2/gs,
(_, prefix: string, quote: string, src: string) =>
`${prefix}${quote}${resolveLink(src.trim(), {
env,
Expand All @@ -63,7 +63,7 @@ export const assetsPlugin: PluginWithOptions<AssetsPluginOptions> = (
)
// handle srcset
.replace(
/(<img\b.*?srcset=)(['"])([^\2]*?)\2/gs,
/(<img\b.*?srcset=)(['"])(.*?)\2/gs,
(_, prefix: string, quote: string, srcset: string) =>
`${prefix}${quote}${srcset
.split(',')
Expand Down
Loading

0 comments on commit 6d4cd11

Please sign in to comment.