Skip to content

Commit

Permalink
feat(dx): fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Nov 28, 2024
1 parent 172557e commit 5d4950b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/brisa/src/utils/handle-css-files/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ describe('utils/handle-css-files', () => {
await handleCSSFiles();
expect(mockLog).toHaveBeenCalledTimes(2);
expect(mockLog).toHaveBeenCalledWith(
LOG_PREFIX.INFO,
`Transpiling CSS with brisa-tailwindcss`,
LOG_PREFIX.WAIT,
`transpiling CSS with brisa-tailwindcss...`,
);
expect(mockLog).toHaveBeenCalledWith(
LOG_PREFIX.INFO,
Expand Down
7 changes: 2 additions & 5 deletions packages/brisa/src/utils/handle-css-files/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path';
import fs from 'node:fs';
import { getConstants } from '@/constants';
import { logError } from '../log/log-build';
import { log, logError } from '../log/log-build';
import { gzipSync } from 'bun';
import { brotliCompressSync } from 'node:zlib';

Expand All @@ -26,10 +26,7 @@ export default async function handleCSSFiles() {
const startTime = Date.now();

if (IS_BUILD_PROCESS) {
console.log(
LOG_PREFIX.INFO,
`Transpiling CSS with ${integration.name}`,
);
log(LOG_PREFIX.WAIT, `transpiling CSS with ${integration.name}...`);
}

let useDefault = true;
Expand Down

0 comments on commit 5d4950b

Please sign in to comment.