I am just trying to use your plugin as a component in my reactjs application. I have abit changed your plugin slightly and pushed the codes to here
I am trying to run my react app but I get below error when I use the js file inside my react app
import "components/PolygonCropper/my-app.js";
Failed to compile.
./src/components/PolygonCropper/my-app.js
Line 139:4: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 3990:475: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 3990:1058: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 3990:1238: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 3990:1435: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 37299:5: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 37304:10: Unexpected use of 'self' no-restricted-globals
Line 37304:33: Unexpected use of 'self' no-restricted-globals
Line 37388:18: 'Vue' is not defined no-undef
Line 37949:16: Unexpected use of 'self' no-restricted-globals
Line 37949:36: Unexpected use of 'self' no-restricted-globals