Skip to content

Commit 362adf8

Browse files
committed
Fix typo
1 parent 65ebcad commit 362adf8

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
@@ -34,21 +34,21 @@ module.exports = function(grunt) {
3434
// Render the banner for the top of the file
3535
const banner = grunt.template.process(bannerTemplate);
3636

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

4747
if (isMin) {
4848
// These paths should be the exact same as what are used in the import
4949
// statements in the source. They are not relative to this file. It's
5050
// just how browserify works apparently.
51-
browseified = browseified
51+
browserified = browserified
5252
.exclude('../../docs/reference/data.json')
5353
.exclude('../../../docs/parameterData.json')
5454
.exclude('../../translations')
@@ -58,7 +58,7 @@ module.exports = function(grunt) {
5858
}
5959

6060
if (!isDev) {
61-
browseified = browseified.exclude('../../translations/dev');
61+
browserified = browserified.exclude('../../translations/dev');
6262
}
6363

6464
const babelifyOpts = { plugins: ['static-fs'] };
@@ -67,7 +67,7 @@ module.exports = function(grunt) {
6767
babelifyOpts.envName = 'test';
6868
}
6969

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

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

0 commit comments

Comments
 (0)