File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1053,6 +1053,17 @@ Vue.component(
1053
1053
)
1054
1054
```
1055
1055
1056
+ [ ローカル登録] ( https://vuejs.org/v2/guide/components.html#ローカル登録 ) を使用するとき、` Promise ` を返す関数を直接提供することもできます:
1057
+
1058
+ ``` js
1059
+ new Vue ({
1060
+ // ...
1061
+ components: {
1062
+ ' my-component ' : () => import (' ./my-async-component' )
1063
+ }
1064
+ })
1065
+ ```
1066
+
1056
1067
<p class =" tip " >もしあなたが <strong >Browserify</strong > のユーザで非同期コンポーネントを使いたいとしたら、残念なことに開発者が[はっきりと](https://github.com/substack/node-browserify/issues/58#issuecomment-21978224)非同期読み込みは Browserify では今後もサポートしない"と述べています。少なくとも公式には。 Browserify コミュニティは、既存のアプリケーションや複雑なアプリケーションに役立つ[いくつかの回避策](https://github.com/vuejs/vuejs.org/issues/620)があります。他のすべてのシナリオでは、ファーストクラスとして非同期サポートを組み込みで提供する Webpack を使用することをお勧めします。</p >
1057
1068
1058
1069
### コンポーネントの命名の慣習
You can’t perform that action at this time.
0 commit comments