-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed as not planned
Description
Describe the bug
input:
import { transformSync } from "esbuild" with { type: "macro" };
console.log(
transformSync(
`const hello = "world";
console.log({ hello });
`,
{ minify: true }
).code
);
unplugin-macros output (through vite):
console.log(
{ "code": 'const hello="world";console.log({hello});\n' }.code
);
bun output:
// a.ts
console.log(`const hello="world";console.log({hello});
`);
Reproduction
above
System Info
version: ^0.17.0
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels