Open AronRubin opened 8 months ago
I need this patch script in my package.json to have opencv-js work with import in the browser (testing on Edge).
"scripts": { ... "fix-opencv-import": "replace \"if[(]typeof window==='object'[)][{]root.cv=factory[(][)];[}]\" \"if(typeof window==='object'){window.cv=factory();}\" node_modules/@techstark/opencv-js/dist/opencv.js", ... },
Thank you
I need this patch script in my package.json to have opencv-js work with import in the browser (testing on Edge).
Thank you