Skip to content

Commit da1ec4e

Browse files
dbwhddn10kevin-brown
authored andcommitted
fix error: "Uncaught ReferenceError: require is not defined"
Signed-off-by: Kevin Brown <kevin@kevinbrown.in>
1 parent cc1eefb commit da1ec4e

8 files changed

Lines changed: 267 additions & 245 deletions

File tree

Gruntfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ module.exports = function (grunt) {
22
// Full list of files that must be included by RequireJS
33
includes = [
44
'jquery.select2',
5-
'almond'
5+
'almond',
6+
7+
'jquery.mousewheel' // shimmed for non-full builds
68
];
79

810
fullIncludes = [
911
'jquery',
10-
'jquery.mousewheel',
1112

1213
'select2/compat/matcher',
1314
'select2/compat/initSelection',
@@ -251,7 +252,8 @@ module.exports = function (grunt) {
251252
namespace: 'S2',
252253
paths: {
253254
almond: '../../vendor/almond-0.2.9',
254-
jquery: 'jquery.shim'
255+
jquery: 'jquery.shim',
256+
'jquery.mousewheel': 'jquery.mousewheel.shim'
255257
},
256258
wrap: {
257259
startFile: 'src/js/banner.start.js',

0 commit comments

Comments
 (0)