Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 3ce0d93

Browse files
committed
fix(console.log): removed dev console message
1 parent bfc32bf commit 3ce0d93

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

compiler/src/clean-up.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ import { join } from 'path';
44
export const cleanUp = async () => {
55
const styleFilePath = join(__dirname, '../../src/core/styles/style.module.css');
66
const globalFilePath = join(__dirname, '../../src/core/styles/style.module.css');
7-
87
try {
98
writeFileSync(styleFilePath, '/*______________________________*/', 'utf-8');
10-
console.log('...💫(reseted module css)');
119
writeFileSync(globalFilePath, '/*______________________________*/', 'utf-8');
12-
console.log('...💫(reseted global css)');
1310
} catch (err) {
1411
console.error('An error occurred:', err);
1512
}

compiler/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ async function getAppRoot(): Promise<string> {
3434
const appRoot = await getAppRoot();
3535
const files = await globby([path.join(appRoot, '**/*.{ts,tsx}')]);
3636
const styleFiles = files.filter(isCSSX);
37-
console.log('\n💬 The following CSS caches were accepted:\n');
3837
const importPromises = styleFiles.map(styleFile => import(path.resolve(styleFile)));
3938
await Promise.all(importPromises);
4039

src/_internal/utils/inject-client-css.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isServer, isDevelopment } from '..';
1+
import { isServer } from '..';
22

33
const styleSheets: Record<string, HTMLStyleElement> = {};
44
const hashCache: Record<string, string> = {};
@@ -15,8 +15,7 @@ export function createStyleElement(hash: string): HTMLStyleElement | null {
1515
return styleSheets[hash];
1616
}
1717

18-
export function injectClientCSS(hash: string, sheet: string, context: string) {
19-
if (isDevelopment) console.log('💫 ' + context + ' executing ...' + sheet);
18+
export function injectClientCSS(hash: string, sheet: string) {
2019
if (isServer) return;
2120
requestAnimationFrame(() => {
2221
styleCleanUp();

src/_internal/utils/inject-client-global-css.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isServer, isDevelopment } from '..';
1+
import { isServer } from '..';
22

33
let styleElement: HTMLStyleElement;
44

@@ -17,7 +17,6 @@ function createStyleElement(scoped: string) {
1717
}
1818

1919
export function injectClientGlobalCSS(sheet: string, scoped: string) {
20-
if (isDevelopment) console.log('💫 ' + scoped + ' executing ...' + sheet);
2120
if (isServer) return;
2221

2322
styleElement = createStyleElement(scoped);

src/_internal/utils/inject-server-css.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { isDevelopment } from '..';
2-
31
const styleSheets: Record<string, string> = {};
42

5-
export function injectServerCSS(hash: string, sheet: string, context: string) {
6-
if (isDevelopment) console.log('💫 ' + context + ' executing ...' + sheet);
3+
export function injectServerCSS(hash: string, sheet: string) {
74
styleSheets[hash] = sheet;
85
}
96

0 commit comments

Comments
 (0)