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 committed Dec 6, 2023
1 parent 2cefe80 commit 6adccc0
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 6adccc0

Please sign in to comment.