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.
__ENABLE_HASH_DECODING__
true
1 parent bc8ff16 commit e9c48bfCopy full SHA for e9c48bf
packages/core/src/lazyLoad.ts
@@ -28,8 +28,11 @@ export function lazyLoad<T extends HTMLImageElement>(
28
cleanupFns.add(onResizeCleanup)
29
30
// Generate the blurry placeholder from a Blurhash or ThumbHash string if applicable
31
- // @ts-expect-error: Compile-time flag to exclude this code from the bundle
32
- if (typeof __ENABLE_HASH_DECODING__ === 'undefined' && hash) {
+ if (
+ // @ts-expect-error: Compile-time flag to exclude this code from the bundle
33
+ (typeof __ENABLE_HASH_DECODING__ === 'undefined' || __ENABLE_HASH_DECODING__)
34
+ && hash
35
+ ) {
36
const placeholder = createPlaceholderFromHash({
37
image,
38
hash: typeof hash === 'string' ? hash : undefined,
0 commit comments