Skip to content

Commit

Permalink
fix: rsbuild context targets type (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Dec 25, 2023
1 parent ffabb8d commit 450cfcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const measureRspressBuildPlugin = () => ({
api.onAfterBuild(async () => {
const buildTime = performance.now() - beforeBuildTime;
metrics.buildColdBootTime = buildTime;
if (api.context.target === 'web') {
if (api.context.targets.includes('web')) {
await saveMetrics(metrics);
}
});
Expand Down

0 comments on commit 450cfcc

Please sign in to comment.