Skip to content

Commit 2bf80b0

Browse files
committed
Increase Browserify compatibility
with this change the user should be able to require the form validator tool before jQuery, and there should be no need to explicitly add $ or jQuery as global variables.
1 parent d5da2f9 commit 2bf80b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Gruntfile.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,19 @@ function initializeGruntConfig(grunt, filesToBuild) {
8585
options: {
8686
src: MAIN_PLUGIN_FILE + '.js',
8787
deps: {
88-
'default': ['$']
88+
default: ['jQuery'],
89+
amd: [{'jquery': 'jQuery'}],
90+
cjs: [{'jquery': 'jQuery'}]
8991
}
9092
}
9193
},
9294
minified: {
9395
options: {
9496
src: MAIN_PLUGIN_FILE + '.min.js',
9597
deps: {
96-
'default': ['$']
98+
default: ['$'],
99+
amd: [{'jquery': 'jQuery'}],
100+
cjs: [{'jquery': 'jQuery'}]
97101
}
98102
}
99103
}

0 commit comments

Comments
 (0)