houhaoyu@huawei.com

load all components in sv mode

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: Icc13a54dcb302802d3ebbc6e62cf48ca32c42da6
This commit is contained in:
houhaoyu
2022-03-28 22:44:30 +08:00
parent 18f5831b56
commit b562673c4a
+3
View File
@@ -194,6 +194,9 @@ export class ResultStates {
if (!projectConfig.isPreview) {
compiler.hooks.compilation.tap('Collect Components And Modules', compilation => {
compilation.hooks.additionalAssets.tapAsync('Collect Components And Modules', callback => {
if (projectConfig.aceSuperVisualPath && fs.existsSync(projectConfig.aceSuperVisualPath)) {
appComponentCollection.clear();
}
compilation.assets['./component_collection.txt'] =
new RawSource(Array.from(appComponentCollection).join(','));
compilation.assets['./module_collection.txt'] =