Requires js jquery plugins

Do I need to write wrappers for every jQuery plugin I'm trying to use in require.js? I can’t order plugin user, they still give me an error that they depend on jQuery.

thank

+5
source share
2 answers

RequireJS 2.0 has a parameter shimthat allows you to use older scripts other than AMD as modules - http://requirejs.org/docs/api.html#config-shim

+11
source

js jquery? , js jquery jquery- jquery/requirejs. . , readme.

+2

All Articles