We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
oxc-transform
1 parent e08dbb3 commit 6382d11Copy full SHA for 6382d11
src/build/plugins/route-meta.ts
@@ -1,5 +1,5 @@
1
import { readFile } from "node:fs/promises";
2
-import { transform } from "oxc-transform";
+import { transformSync } from "oxc-transform";
3
import type { Expression, Literal } from "estree";
4
import type { Nitro, NitroEventHandler } from "nitro/types";
5
import type { Plugin } from "rollup";
@@ -39,7 +39,7 @@ export function routeMeta(nitro: Nitro) {
39
let meta: NitroEventHandler["meta"] | null = null;
40
41
try {
42
- const jsCode = transform(id, code).code;
+ const jsCode = transformSync(id, code).code;
43
const ast = this.parse(jsCode);
44
for (const node of ast.body) {
45
if (
0 commit comments