Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd0c603

Browse files
committed
improve name of _bundle option
1 parent f400d1c commit cd0c603

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tasks/bundle.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ tasks.push(function(done) {
7070
// Bundle plotly.js with meta
7171
tasks.push(function(done) {
7272
_bundle(pathToPlotlyIndex, pathToPlotlyDistWithMeta, {
73-
noCompress: true
73+
noCompressAttributes: true
7474
}, function() {
7575
prependFile.sync(pathToPlotlyDistWithMeta, header, common.throwOnError);
7676

tasks/cibundle.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import _bundle from './util/bundle_wrapper.mjs';
1313

1414
// Bundle plotly.js and plotly.min.js
1515
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyBuild, {
16-
noCompress: true,
16+
noCompressAttributes: true,
1717
pathToMinBundle: constants.pathToPlotlyBuildMin
1818
}, function() {
1919
// Bundle the geo assets
2020
_bundle(constants.pathToPlotlyGeoAssetsSrc, constants.pathToPlotlyGeoAssetsDist, {
21-
noCompress: true,
21+
noCompressAttributes: true,
2222
standalone: 'PlotlyGeoAssets'
2323
});
2424
});

tasks/util/bundle_wrapper.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import transform from '../../tasks/compress_attributes.js';
1414
* - standalone {string}
1515
* Additional option:
1616
* - pathToMinBundle {string} path to destination minified bundle
17-
* - noCompress {boolean} skip attribute meta compression?
17+
* - noCompressAttributes {boolean} skip attribute meta compression?
1818
* @param {function} cb callback
1919
*
2020
* Outputs one bundle (un-minified) file if opts.pathToMinBundle is omitted.
@@ -27,7 +27,7 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
2727

2828
config.entryPoints = [pathToIndex];
2929
config.outfile = pathToBundle || pathToMinBundle;
30-
if(!opts.noCompress) config.plugins.push(browserifyAdapter(transform));
30+
if(!opts.noCompressAttributes) config.plugins.push(browserifyAdapter(transform));
3131
if(opts.noPlugins) consfig.noPlugins = [];
3232

3333
var pathToMinBundle = opts.pathToMinBundle;

0 commit comments

Comments
 (0)