From 3aa7d9a186b154ceb0c5d4fd0e199138f3e7f4fe Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Fri, 17 Feb 2023 15:34:15 -0500 Subject: [PATCH 1/2] rename browserify_wrapper to bundle_wrapper --- tasks/bundle.js | 2 +- tasks/cibundle.js | 2 +- tasks/partial_bundle.js | 2 +- tasks/util/{browserify_wrapper.js => bundle_wrapper.js} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename tasks/util/{browserify_wrapper.js => bundle_wrapper.js} (100%) diff --git a/tasks/bundle.js b/tasks/bundle.js index 77bbbc17207..b619adcd1ea 100644 --- a/tasks/bundle.js +++ b/tasks/bundle.js @@ -3,7 +3,7 @@ var prependFile = require('prepend-file'); var constants = require('./util/constants'); var common = require('./util/common'); -var _bundle = require('./util/browserify_wrapper'); +var _bundle = require('./util/bundle_wrapper'); var header = constants.licenseDist + '\n'; var pathToPlotlyDist = constants.pathToPlotlyDist; diff --git a/tasks/cibundle.js b/tasks/cibundle.js index bde850368a5..4307f1273ae 100644 --- a/tasks/cibundle.js +++ b/tasks/cibundle.js @@ -1,5 +1,5 @@ var constants = require('./util/constants'); -var _bundle = require('./util/browserify_wrapper'); +var _bundle = require('./util/bundle_wrapper'); /* * Trimmed down version of ./bundle.js for CI testing diff --git a/tasks/partial_bundle.js b/tasks/partial_bundle.js index 4d1c81e6b72..6eaafa9ce38 100644 --- a/tasks/partial_bundle.js +++ b/tasks/partial_bundle.js @@ -2,7 +2,7 @@ var prependFile = require('prepend-file'); var constants = require('./util/constants'); var common = require('./util/common'); -var _bundle = require('./util/browserify_wrapper'); +var _bundle = require('./util/bundle_wrapper'); var header = constants.licenseDist + '\n'; var allTransforms = constants.allTransforms; diff --git a/tasks/util/browserify_wrapper.js b/tasks/util/bundle_wrapper.js similarity index 100% rename from tasks/util/browserify_wrapper.js rename to tasks/util/bundle_wrapper.js From baf1331140c8ac95c69a04a65bd13e034bfe8858 Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Fri, 17 Feb 2023 15:35:56 -0500 Subject: [PATCH 2/2] update comments --- tasks/locales.js | 2 +- tasks/util/bundle_wrapper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/locales.js b/tasks/locales.js index bfa1efeaea6..51730a346f9 100644 --- a/tasks/locales.js +++ b/tasks/locales.js @@ -7,7 +7,7 @@ var wrapLocale = require('./util/wrap_locale'); var pathToLib = constants.pathToLib; var pathToDist = constants.pathToDist; -// "Browserify" the locales +// Bundle the locales var localeGlob = path.join(pathToLib, 'locales', '*.js'); glob(localeGlob, function(err, files) { files.forEach(function(file) { diff --git a/tasks/util/bundle_wrapper.js b/tasks/util/bundle_wrapper.js index b4d920b3a10..078961747a0 100644 --- a/tasks/util/bundle_wrapper.js +++ b/tasks/util/bundle_wrapper.js @@ -11,7 +11,7 @@ var nRules = config.module.rules.length; * @param {string} pathToIndex path to index file to bundle * @param {string} pathToBunlde path to destination bundle * @param {object} opts - * Browserify options: + * Bundle options: * - standalone {string} * Additional option: * - pathToMinBundle {string} path to destination minified bundle