Closed aneeskodappana closed 3 years ago
xZoom is jQuery plugin. And not ready out of the box to be imported in projects by webpack. But you can try to use one of the suggested approach to first get jQuery into your globals, and then same way load xZoom: https://stackoverflow.com/questions/28969861/managing-jquery-plugin-dependency-in-webpack
Anyway this is good question, I'll try to make working example later in https://github.com/payalord/xzoom-sandbox
please use require
instead of import
after you properly loaded jQuery, this must fix import problem.
when i import this plugin into an angular project using the following syntax
the console showing xzoom is not a function.
any idea to use xzoom in an angular project. Is this plugin ok to use with webpack?
Thank you