File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2424<div class =" html " >
2525
2626::: tip
27- <!-- TODO: translation --> If you're about to use HTML-mode without a build step in your own applications, make sure you either change imports to:
27+ 如果你想在应用中采用 HTML 模式而不进行构建,那么请确保要么在脚本中按如下方式导入:
2828
2929``` js
3030import { ... } from ' vue/dist/vue.esm-bundler.js'
3131```
3232
33- inside your scripts or configure your build tool to resolve ` vue ` accordingly. Sample config for [ Vite] ( https://vitejs.dev/ ) :
33+ 要么通过配置构建工具来正确解析 ` vue ` 。以下是 [ Vite] ( https://vitejs.dev/ ) 配置的示例:
3434
3535``` js
3636// vite.config.js
@@ -43,7 +43,7 @@ export default {
4343}
4444```
4545
46- See the respective [ section in Tooling guide ] ( /guide/scaling-up/tooling.html#note-on-in-browser-template-compilation ) for more information.
46+ 更多相关信息,请参阅 [ 工具链指南中的相关部分 ] ( /guide/scaling-up/tooling.html#note-on-in-browser-template-compilation ) 。
4747:::
4848
4949</div >
You can’t perform that action at this time.
0 commit comments