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.
2 parents b2ffcbd + e405476 commit 788b871Copy full SHA for 788b871
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