Skip to content

Commit 0246591

Browse files
committed
doc: 更新示例文档
1 parent 0164891 commit 0246591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo-general/src/preview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const SamplePreview = () => {
5757
const assetLoader = new AssetLoader();
5858
await assetLoader.load(libraryAsset);
5959

60-
// injectComponents 的使用一般在开发环境做调试注入使用(详细见文档),一般纯净的预览环境是不依赖此插件
60+
// injectComponents 的使用一般在开发环境做调试注入使用(详细见文档),一般纯净的预览环境是不依赖此插件(即预览渲染态理论上是不需要依赖任何引擎及其相关的插件等资源,PS: 一些 utils 和 types 忽略)
6161
// 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.
6262
// const components = await injectComponents(buildComponents(libraryMap, componentsMap));
6363
const components = buildComponents(libraryMap, componentsMap);

0 commit comments

Comments
 (0)