Skip to content

Commit 7234cdf

Browse files
committed
Fix typo
1 parent d3813a3 commit 7234cdf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tasks/build/browserify.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ module.exports = function(grunt) {
3232
// Render the banner for the top of the file
3333
const banner = grunt.template.process(bannerTemplate);
3434

35-
let globalsVars = {};
35+
let globalVars = {};
3636
if (isDev) {
37-
globalsVars['P5_DEV_BUILD'] = () => true;
37+
globalVars['P5_DEV_BUILD'] = () => true;
3838
}
3939
// Invoke Browserify programatically to bundle the code
40-
let browseified = browserify(srcFilePath, {
40+
let browserified = browserify(srcFilePath, {
4141
standalone: 'p5',
42-
insertGlobalVars: globalsVars
42+
insertGlobalVars: globalVars
4343
});
4444

4545
if (isMin) {
46-
browseified = browseified
46+
browserified = browserified
4747
.exclude('../../docs/reference/data.json')
4848
.exclude('../../../docs/parameterData.json')
4949
.exclude('../../translations')
@@ -53,7 +53,7 @@ module.exports = function(grunt) {
5353
}
5454

5555
if (!isDev) {
56-
browseified = browseified.exclude('../../translations/dev');
56+
browserified = browserified.exclude('../../translations/dev');
5757
}
5858

5959
const babelifyOpts = { plugins: ['static-fs'] };
@@ -62,7 +62,7 @@ module.exports = function(grunt) {
6262
babelifyOpts.envName = 'test';
6363
}
6464

65-
const bundle = browseified.transform('babelify', babelifyOpts).bundle();
65+
const bundle = browserified.transform('babelify', babelifyOpts).bundle();
6666

6767
// Start the generated output with the banner comment,
6868
let code = banner + '\n';

0 commit comments

Comments
 (0)