From 9ef70bfde85b540627f5b87607af0ec4ab6e3253 Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Fri, 18 Mar 2022 13:36:22 -0400 Subject: [PATCH] call sync method of prependFile --- tasks/bundle.js | 12 ++++++------ tasks/partial_bundle.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/bundle.js b/tasks/bundle.js index ed6b0eb98b8..4103e271e52 100644 --- a/tasks/bundle.js +++ b/tasks/bundle.js @@ -37,8 +37,8 @@ tasks.push(function(done) { standalone: 'Plotly', pathToMinBundle: pathToPlotlyDistMin }, function() { - prependFile(pathToPlotlyDist, header, common.throwOnError); - prependFile(pathToPlotlyDistMin, header, common.throwOnError); + prependFile.sync(pathToPlotlyDist, header, common.throwOnError); + prependFile.sync(pathToPlotlyDistMin, header, common.throwOnError); done(); }); @@ -50,8 +50,8 @@ tasks.push(function(done) { standalone: 'Plotly', pathToMinBundle: pathToPlotlyStrictDistMin }, function() { - prependFile(pathToPlotlyStrictDist, header, common.throwOnError); - prependFile(pathToPlotlyStrictDistMin, header, common.throwOnError); + prependFile.sync(pathToPlotlyStrictDist, header, common.throwOnError); + prependFile.sync(pathToPlotlyStrictDistMin, header, common.throwOnError); done(); }); @@ -62,7 +62,7 @@ tasks.push(function(done) { _bundle(pathToPlotlyGeoAssetsSrc, pathToPlotlyGeoAssetsDist, { standalone: 'PlotlyGeoAssets' }, function() { - prependFile(pathToPlotlyGeoAssetsDist, header, common.throwOnError); + prependFile.sync(pathToPlotlyGeoAssetsDist, header, common.throwOnError); done(); }); @@ -74,7 +74,7 @@ tasks.push(function(done) { standalone: 'Plotly', noCompress: true }, function() { - prependFile(pathToPlotlyDistWithMeta, header, common.throwOnError); + prependFile.sync(pathToPlotlyDistWithMeta, header, common.throwOnError); done(); }); diff --git a/tasks/partial_bundle.js b/tasks/partial_bundle.js index 91d2f861bdf..7dd9f05a0cb 100644 --- a/tasks/partial_bundle.js +++ b/tasks/partial_bundle.js @@ -63,8 +63,8 @@ module.exports = function partialBundle(tasks, opts) { var headerDist = header.replace('plotly.js', 'plotly.js (' + name + ')'); var headerDistMin = header.replace('plotly.js', 'plotly.js (' + name + ' - minified)'); - if(dist) prependFile(dist, headerDist, common.throwOnError); - if(distMin) prependFile(distMin, headerDistMin, common.throwOnError); + if(dist) prependFile.sync(dist, headerDist, common.throwOnError); + if(distMin) prependFile.sync(distMin, headerDistMin, common.throwOnError); done(); });