@@ -34,21 +34,21 @@ module.exports = function(grunt) {
34
34
// Render the banner for the top of the file
35
35
const banner = grunt . template . process ( bannerTemplate ) ;
36
36
37
- let globalsVars = { } ;
37
+ let globalVars = { } ;
38
38
if ( isDev ) {
39
- globalsVars [ 'P5_DEV_BUILD' ] = ( ) => true ;
39
+ globalVars [ 'P5_DEV_BUILD' ] = ( ) => true ;
40
40
}
41
41
// Invoke Browserify programatically to bundle the code
42
- let browseified = browserify ( srcFilePath , {
42
+ let browserified = browserify ( srcFilePath , {
43
43
standalone : 'p5' ,
44
- insertGlobalVars : globalsVars
44
+ insertGlobalVars : globalVars
45
45
} ) ;
46
46
47
47
if ( isMin ) {
48
48
// These paths should be the exact same as what are used in the import
49
49
// statements in the source. They are not relative to this file. It's
50
50
// just how browserify works apparently.
51
- browseified = browseified
51
+ browserified = browserified
52
52
. exclude ( '../../docs/reference/data.json' )
53
53
. exclude ( '../../../docs/parameterData.json' )
54
54
. exclude ( '../../translations' )
@@ -58,7 +58,7 @@ module.exports = function(grunt) {
58
58
}
59
59
60
60
if ( ! isDev ) {
61
- browseified = browseified . exclude ( '../../translations/dev' ) ;
61
+ browserified = browserified . exclude ( '../../translations/dev' ) ;
62
62
}
63
63
64
64
const babelifyOpts = { plugins : [ 'static-fs' ] } ;
@@ -67,7 +67,7 @@ module.exports = function(grunt) {
67
67
babelifyOpts . envName = 'test' ;
68
68
}
69
69
70
- const bundle = browseified . transform ( 'babelify' , babelifyOpts ) . bundle ( ) ;
70
+ const bundle = browserified . transform ( 'babelify' , babelifyOpts ) . bundle ( ) ;
71
71
72
72
// Start the generated output with the banner comment,
73
73
let code = banner + '\n' ;
0 commit comments