Skip to content

Commit a00e1bf

Browse files
committed
Update lockfile and fix lint
1 parent 074398f commit a00e1bf

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/BundleAnalyzerPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class BundleAnalyzerPlugin {
8080

8181
async generateStatsFile(stats) {
8282
const statsFilepath = path.resolve(this.compiler.outputPath, this.opts.statsFilename);
83-
await fs.promises.mkdir(path.dirname(statsFilepath), { recursive: true });
83+
await fs.promises.mkdir(path.dirname(statsFilepath), {recursive: true});
8484

8585
try {
8686
await writeStats(stats, statsFilepath);

src/viewer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async function generateReport(bundleStats, opts) {
162162

163163
const reportFilepath = path.resolve(bundleDir || process.cwd(), reportFilename);
164164

165-
fs.mkdirSync(path.dirname(reportFilepath), { recursive: true });
165+
fs.mkdirSync(path.dirname(reportFilepath), {recursive: true});
166166
fs.writeFileSync(reportFilepath, reportHtml);
167167

168168
logger.info(`${bold('Webpack Bundle Analyzer')} saved report to ${bold(reportFilepath)}`);
@@ -186,7 +186,7 @@ async function generateJSONReport(bundleStats, opts) {
186186

187187
if (!chartData) return;
188188

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

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

0 commit comments

Comments
 (0)