Answer the question
In order to leave comments, you need to log in
Do I need to use define.amd in jQuery code when using Vue 3?
There is such a construction that is found in almost any jQuery plugin:
if (typeof define === 'function' && define.amd) {
define(['exports'], factory(exports));
} else if (typeof module === 'object' && module.exports) {
factory(module.exports);
} else {
factory(exports);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question