Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix(externals): address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dogpatch626 committed Sep 15, 2023
1 parent a22bc5b commit 2962707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/one-app-dev-bundler/esbuild/plugins/time-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const timeBuild = ({ bundleName, watch }) => ({

if (!watch) { // watch has its own logging
console.log(`${bundleName} bundle built in ${result.durationMs}ms`);
// sanatize the / in scoped packages
await fs.promises.writeFile(`.esbuild-stats.${bundleName.split('/').join('-')}.json`, JSON.stringify({
const sanitizedName = bundleName.replace('/', '-');
await fs.promises.writeFile(`.esbuild-stats.${sanitizedName}.json`, JSON.stringify({
...result.metafile.outputs,
durationMs: result.durationMs,
}));
Expand Down

0 comments on commit 2962707

Please sign in to comment.