@@ -32,18 +32,18 @@ module.exports = function(grunt) {
32
32
// Render the banner for the top of the file
33
33
const banner = grunt . template . process ( bannerTemplate ) ;
34
34
35
- let globalsVars = { } ;
35
+ let globalVars = { } ;
36
36
if ( isDev ) {
37
- globalsVars [ 'P5_DEV_BUILD' ] = ( ) => true ;
37
+ globalVars [ 'P5_DEV_BUILD' ] = ( ) => true ;
38
38
}
39
39
// Invoke Browserify programatically to bundle the code
40
- let browseified = browserify ( srcFilePath , {
40
+ let browserified = browserify ( srcFilePath , {
41
41
standalone : 'p5' ,
42
- insertGlobalVars : globalsVars
42
+ insertGlobalVars : globalVars
43
43
} ) ;
44
44
45
45
if ( isMin ) {
46
- browseified = browseified
46
+ browserified = browserified
47
47
. exclude ( '../../docs/reference/data.json' )
48
48
. exclude ( '../../../docs/parameterData.json' )
49
49
. exclude ( '../../translations' )
@@ -53,7 +53,7 @@ module.exports = function(grunt) {
53
53
}
54
54
55
55
if ( ! isDev ) {
56
- browseified = browseified . exclude ( '../../translations/dev' ) ;
56
+ browserified = browserified . exclude ( '../../translations/dev' ) ;
57
57
}
58
58
59
59
const babelifyOpts = { plugins : [ 'static-fs' ] } ;
@@ -62,7 +62,7 @@ module.exports = function(grunt) {
62
62
babelifyOpts . envName = 'test' ;
63
63
}
64
64
65
- const bundle = browseified . transform ( 'babelify' , babelifyOpts ) . bundle ( ) ;
65
+ const bundle = browserified . transform ( 'babelify' , babelifyOpts ) . bundle ( ) ;
66
66
67
67
// Start the generated output with the banner comment,
68
68
let code = banner + '\n' ;
0 commit comments