diff --git a/docs/zh-cn/configurations/asset-url.md b/docs/zh-cn/configurations/asset-url.md index 2601b56e4..37f3f73a1 100644 --- a/docs/zh-cn/configurations/asset-url.md +++ b/docs/zh-cn/configurations/asset-url.md @@ -23,7 +23,7 @@ createElement('img', { attrs: { src: require('../image.png') }}) - 如果路径以 `~` 开头,其后的部分将会被看作模块依赖。这意味着你可以用该特性来引用一个 node 依赖中的资源: ``` html - + ``` - (13.7.0+) 如果路径以 `@` 开头,也会被看作模块依赖。如果你的 webpack 配置中给 `@` 配置了 alias,这就很有用了。所有 `vue-cli` 创建的项目都默认配置了将 `@` 指向 `/src`。 diff --git a/docs/zh-cn/options.md b/docs/zh-cn/options.md index 501550727..a6775b817 100644 --- a/docs/zh-cn/options.md +++ b/docs/zh-cn/options.md @@ -162,6 +162,8 @@ module.exports = { ### esModule +> 这个选项已经从 v14.0 中移除。在 v14.0 及以上版本中,`*.vue` 文件始终暴露为 ES 模块。 + - 类型: `Boolean` - 默认值: `undefined` diff --git a/docs/zh-cn/start/spec.md b/docs/zh-cn/start/spec.md index 850afdbe1..1c11ecdae 100644 --- a/docs/zh-cn/start/spec.md +++ b/docs/zh-cn/start/spec.md @@ -104,7 +104,6 @@ export default { ### 语法高亮 - 目前语法高亮支持 [Sublime Text](https://github.com/vuejs/vue-syntax-highlight)、[Atom](https://atom.io/packages/language-vue)、[Vim](https://github.com/posva/vim-vue)、[Emacs](https://github.com/AdamNiederer/vue-mode)、[Visual Studio Code](https://marketplace.visualstudio.com/items/liuji-jim.vue)、[Brackets](https://github.com/pandao/brackets-vue) 和 [JetBrains products](https://plugins.jetbrains.com/plugin/8057) (WebStorm、PhpStorm 等)。非常感谢其他编辑器/IDE 所做的贡献!如果在 Vue 组件中没有使用任何预处理器,你可以把 `.vue` 文件当作 HTML 对待。 ### 注释