We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71badb commit e405476Copy full SHA for e405476
packages/qwik/src/core/preloader/bundle-graph.ts
@@ -131,8 +131,8 @@ export const initPreloader = (
131
if ('debug' in opts) {
132
config.$DEBUG$ = !!opts.debug;
133
}
134
- if ('preloadProbability' in opts) {
135
- config.$invPreloadProbability$ = 1 - (opts.preloadProbability as number);
+ if (typeof opts.preloadProbability === 'number') {
+ config.$invPreloadProbability$ = 1 - opts.preloadProbability;
136
137
138
if (base != null || !serializedBundleGraph) {
0 commit comments