File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ function gatherRequireJsImports(modules) {
1010 for ( var module of modules ) {
1111 // If the requirejs-loader was used, then we need to wrap and import this module.
1212 // TODO: Clean up this check.
13- if ( module . request && String ( module . request ) . indexOf ( 'jquery.js' ) !== - 1 ) {
13+ // Necessary to check for both jquery.js and jquery.min.js (for sites with minification)
14+ if ( module . request && ( String ( module . request ) . indexOf ( 'jquery.js' ) !== - 1 || String ( module . request ) . indexOf ( 'jquery.min.js' ) !== - 1 ) ) {
1415 needsImport . push ( 'mixins!' + module . rawRequest ) ;
1516 } else if ( module . request && String ( module . request ) . indexOf ( 'requirejs-loader' ) !== - 1 ) {
1617 needsImport . push ( module . rawRequest ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @sdinteractive/requirejs-export-plugin" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " webpack plugin to export modules to requirejs." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments