Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak committed Aug 24, 2024
1 parent 83b4283 commit eaf600e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "remix-development-tools",
"description": "Remix development tools - a set of tools for developing/debugging Remix.run apps",
"author": "Alem Tuzlak",
"version": "4.3.0",
"version": "4.3.1",
"license": "MIT",
"keywords": [
"remix",
Expand Down
2 changes: 1 addition & 1 deletion src/vite/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const remixDevTools: (args?:RemixViteConfig) => Plugin[] = (args) => {
}

const column = line.indexOf("console.");
const logMessage = `"${chalk.magenta("LOG")} ${chalk.blueBright(`${id.replace(normalizePath(process.cwd()),"")}:${lineNumber+1}:${column+1}`)}\\n → "`;
const logMessage = `"${chalk.magenta("LOG")} ${chalk.blueBright(`${id.replace(normalizePath(process.cwd()),"")}:${lineNumber+1}:${column+1}`)}\\n → "`;
if (line.includes("console.log(")) {
const newLine = `console.log(${logMessage},`;
return line.replace("console.log(", newLine);
Expand Down

0 comments on commit eaf600e

Please sign in to comment.