Skip to content

Commit 074398f

Browse files
committed
Fix typos
1 parent 7a11801 commit 074398f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/BundleAnalyzerPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = reqiore('fs');
1+
const fs = require('fs');
22
const path = require('path');
33
const {bold} = require('chalk');
44

src/viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function generateJSONReport(bundleStats, opts) {
187187
if (!chartData) return;
188188

189189
await fs.promises.mkdir(path.dirname(reportFilename), { recursive: true });
190-
await fs.promises.writeFileSync(reportFilename, JSON.stringify(chartData));
190+
await fs.promises.writeFile(reportFilename, JSON.stringify(chartData));
191191

192192
logger.info(`${bold('Webpack Bundle Analyzer')} saved JSON report to ${bold(reportFilename)}`);
193193
}

0 commit comments

Comments
 (0)