Skip to content

Commit

Permalink
doc: 更新示例文档
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilaoge committed May 8, 2024
1 parent 0164891 commit 0246591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo-general/src/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const SamplePreview = () => {
const assetLoader = new AssetLoader();
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.
// const components = await injectComponents(buildComponents(libraryMap, componentsMap));
const components = buildComponents(libraryMap, componentsMap);
Expand Down

0 comments on commit 0246591

Please sign in to comment.