Harden scanner startup and defer polyfill loading
- Fix waitForVideoReady race by re-checking after listeners and timing out - Serialize iOS native scans with an in-flight guard and chained timeouts - Lazy-load @undecaf/barcode-detector-polyfill only when scanning starts Co-authored-by: Ned Halksworth <hello@nedhalksworth.com>
This commit is contained in:
@@ -13,7 +13,6 @@ export default defineConfig(({ command }) => ({
|
||||
charts: ["recharts"],
|
||||
motion: ["framer-motion"],
|
||||
icons: ["lucide-react"],
|
||||
barcode: ["@undecaf/barcode-detector-polyfill"],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user