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

Skip to content

Commit f400d1c

Browse files
committed
no plugins to bundle geo assests
1 parent b8fc583 commit f400d1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tasks/bundle.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tasks.push(function(done) {
5858
// Bundle the geo assets
5959
tasks.push(function(done) {
6060
_bundle(pathToPlotlyGeoAssetsSrc, pathToPlotlyGeoAssetsDist, {
61-
noCompress: true,
61+
noPlugins: true,
6262
standalone: 'PlotlyGeoAssets'
6363
}, function() {
6464
prependFile.sync(pathToPlotlyGeoAssetsDist, header, common.throwOnError);

tasks/util/bundle_wrapper.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
2828
config.entryPoints = [pathToIndex];
2929
config.outfile = pathToBundle || pathToMinBundle;
3030
if(!opts.noCompress) config.plugins.push(browserifyAdapter(transform));
31+
if(opts.noPlugins) consfig.noPlugins = [];
3132

3233
var pathToMinBundle = opts.pathToMinBundle;
3334
var pending = (pathToMinBundle && pathToBundle) ? 2 : 1;

0 commit comments

Comments
 (0)