Skip to content

Commit 94e2168

Browse files
committed
build: bump vitepress
1 parent b15b2b7 commit 94e2168

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

guide/assets.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import InlineWorker from './shader.js?worker&inline'
8585

8686
## new URL(url, import.meta.url)
8787

88-
[import.meta.url](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import%2Emeta) 是一个 ESM 的原生功能,会暴露当前模块的 URL。将它与原生的 [URL 构造器](https://developer.mozilla.org/en-US/docs/Web/API/URL) 组合使用,在一个 JavaScript 模块中,通过相对路径我们就能得到一个被完整解析的静态资源 URL:
88+
[import.meta.url](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta) 是一个 ESM 的原生功能,会暴露当前模块的 URL。将它与原生的 [URL 构造器](https://developer.mozilla.org/en-US/docs/Web/API/URL) 组合使用,在一个 JavaScript 模块中,通过相对路径我们就能得到一个被完整解析的静态资源 URL:
8989

9090
```js
9191
const imgUrl = new URL('./img.png', import.meta.url)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"chalk": "^4.1.0",
1111
"gray-matter": "^4.0.3",
1212
"lodash": "^4.17.21",
13-
"vitepress": "^0.19.1",
13+
"vitepress": "^0.19.2",
1414
"yorkie": "^2.0.0"
1515
},
1616
"scripts": {

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,10 @@ vite@^2.5.0:
639639
optionalDependencies:
640640
fsevents "~2.3.2"
641641

642-
vitepress@^0.19.1:
643-
version "0.19.1"
644-
resolved "https://registry.yarnpkg.com/vitepress/-/vitepress-0.19.1.tgz#972fb8eb5687d26e4f7048796366dfb565aef8e4"
645-
integrity sha512-+tC2xy4r6zcYlUypyJPIsQd3lhNtomNUMo9r5JD+A721sb686lxmlsYrYYKf2vZ9DWUQ3T091u3tET7vJnZwjw==
642+
vitepress@^0.19.2:
643+
version "0.19.2"
644+
resolved "https://registry.yarnpkg.com/vitepress/-/vitepress-0.19.2.tgz#125d9c218201486f3c51b6b8dcbca37c7f27a76c"
645+
integrity sha512-F8KY5gTfIa9B61by6rlGQE2K/fw2FIflld6UuB3SHTp0E5cblYGUkGfVwMiai+ets2ztDqWIiJJqpDBm/Cam1Q==
646646
dependencies:
647647
"@docsearch/css" "^1.0.0-alpha.28"
648648
"@docsearch/js" "^1.0.0-alpha.28"

0 commit comments

Comments
 (0)