doc: 更新示例文档
This commit is contained in:
parent
016489150f
commit
0246591841
|
@ -57,7 +57,7 @@ const SamplePreview = () => {
|
||||||
const assetLoader = new AssetLoader();
|
const assetLoader = new AssetLoader();
|
||||||
await assetLoader.load(libraryAsset);
|
await assetLoader.load(libraryAsset);
|
||||||
|
|
||||||
// injectComponents 的使用一般在开发环境做调试注入使用(详细见文档),一般纯净的预览环境是不依赖此插件
|
// injectComponents 的使用一般在开发环境做调试注入使用(详细见文档),一般纯净的预览环境是不依赖此插件(即预览渲染态理论上是不需要依赖任何引擎及其相关的插件等资源,PS: 一些 utils 和 types 忽略)
|
||||||
// The use of injectComponents is generally used for debugging and injection in the development environment (see the documentation for details). The generally destroyed preview environment does not rely on this plug-in.
|
// The use of injectComponents is generally used for debugging and injection in the development environment (see the documentation for details). The generally destroyed preview environment does not rely on this plug-in.
|
||||||
// const components = await injectComponents(buildComponents(libraryMap, componentsMap));
|
// const components = await injectComponents(buildComponents(libraryMap, componentsMap));
|
||||||
const components = buildComponents(libraryMap, componentsMap);
|
const components = buildComponents(libraryMap, componentsMap);
|
||||||
|
|
Loading…
Reference in New Issue