Skip to content

Commit

Permalink
Support engine's lazyLoading boolean config
Browse files Browse the repository at this point in the history
  • Loading branch information
fengb authored and mansona committed Dec 12, 2023
1 parent dfb37f6 commit c4dcdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compat/src/v1-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ export default class V1Addon {
let built = new IntermediateBuild();
built.staticMeta['order-index'] = this.orderIdx;

if (this.options.lazyLoading && this.options.lazyLoading.enabled) {
if (this.options.lazyLoading === true || (this.options.lazyLoading && this.options.lazyLoading.enabled)) {
built.staticMeta['lazy-engine'] = true;
}

Expand Down

0 comments on commit c4dcdf8

Please sign in to comment.