Skip to content

Commit be8d5a1

Browse files
committed
fix: original expression
1 parent 650e058 commit be8d5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/transform/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function transform(context: Context) {
5454
await walk(program, {
5555
enter(node) {
5656
if (isConsoleExpression(node)) {
57-
const originalExpression = magicString.slice(node.start, node.end)
57+
const originalExpression = compileResult.script.slice(node.start, node.end)
5858

5959
if (originalExpression.includes('%c'))
6060
return false

0 commit comments

Comments
 (0)