Open AronRubin opened 1 year 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
@AronRubin What error do you get if you did not apply this patch?
I need this patch script in my package.json to have opencv-js work with import in the browser (testing on Edge).
Thank you