Skip to content

Commit 237392f

Browse files
committed
remove console logs
1 parent 2bf9d6a commit 237392f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

packages/@react-spectrum/s2/style/style-macro.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ export function createTheme<T extends Theme>(theme: T): StyleFunction<ThemePrope
395395
className += ` -macro$${id}`;
396396
return {toString: new Function(`
397397
(globalThis.__macros ??= {})[${JSON.stringify(id)}] = ${JSON.stringify({loc, style})};
398-
// console.log('static macro ${JSON.stringify(className)}');
399398
return ${JSON.stringify(className)};
400399
`)};
401400
}
@@ -404,12 +403,10 @@ export function createTheme<T extends Theme>(theme: T): StyleFunction<ThemePrope
404403
if (process.env.NODE_ENV !== 'production') {
405404
js += 'let hash = 5381;for (let i = 0; i < rules.length; i++) { hash = ((hash << 5) + hash) + rules.charCodeAt(i) >>> 0; }\n';
406405
js += 'rules += " -macro$" + hash.toString(36);\n';
407-
// js += `console.log('dynamic macro', hash.toString(36), currentRules);\n`;
408406
js += `(globalThis.__macros ??= {})[hash.toString(36)] = {loc: ${JSON.stringify(loc)}, style: currentRules};\n`;
409407
js += 'window.postMessage("update-macros", "*");\n';
410408
}
411409
js += 'return rules;';
412-
// console.log(js)
413410
if (allowedOverrides) {
414411
return new Function('props', 'overrides', js) as any;
415412
}

packages/dev/style-macro-chrome-plugin/src/content-script.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ window.addEventListener('message', function (event) {
1010
return;
1111
}
1212

13-
// console.log(event)
1413
var message = event.data;
1514

1615
// Only accept messages that we know are ours. Note that this is not foolproof

0 commit comments

Comments
 (0)