Skip to content

Commit f32cd36

Browse files
authored
ref(nextjs): Remove object.freeze call (#4284)
Save on bytes by removing object.freeze.
1 parent 42f5a58 commit f32cd36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nextjs/src/performance/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const global = getGlobalObject<Window>();
88

99
type StartTransactionCb = (context: TransactionContext) => Transaction | undefined;
1010

11-
const DEFAULT_TAGS = Object.freeze({
11+
const DEFAULT_TAGS = {
1212
'routing.instrumentation': 'next-router',
13-
});
13+
} as const;
1414

1515
let activeTransaction: Transaction | undefined = undefined;
1616
let prevTransactionName: string | undefined = undefined;

0 commit comments

Comments
 (0)