Skip to content

Commit

Permalink
build: bump vitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 28, 2021
1 parent b15b2b7 commit 94e2168
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion guide/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import InlineWorker from './shader.js?worker&inline'

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

[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:
[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:

```js
const imgUrl = new URL('./img.png', import.meta.url)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"chalk": "^4.1.0",
"gray-matter": "^4.0.3",
"lodash": "^4.17.21",
"vitepress": "^0.19.1",
"vitepress": "^0.19.2",
"yorkie": "^2.0.0"
},
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,10 @@ vite@^2.5.0:
optionalDependencies:
fsevents "~2.3.2"

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

0 comments on commit 94e2168

Please sign in to comment.