We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: v22 automd: v0.3.12
const hoge = async () => { await something() }
It fails:
SyntaxError: Unexpected reserved word
No response
[6:14:24] ✔ Automd updated (667.54ms) [6:14:24] ─ t.md with issues (205.35ms) [6:14:24] WARN Some issues happened during automd update: [6:14:24] t.md SyntaxError: Unexpected reserved word [6:14:24]
The text was updated successfully, but these errors were encountered:
https://github.com/[holyfata-reproduction/automd-issue99-reproduction](https://github.com/holyfata-reproduction/automd-issue99-reproduction) I made a repo for the issue, the amazing thing is that if you export the async function it will be ok. However, to normal, if will be ok even it is not exported.
Sorry, something went wrong.
import { createJiti } from 'jiti'; import path from 'node:path'; import { defu } from 'defu'; import babelPluginUntyped from 'untyped/babel-plugin'; // const jitiOptions = { fsCache: false, moduleCache: false } const jitiOptions = { moduleCache: false } const options: { jiti?: any } = { jiti: jitiOptions }; const jiti = createJiti( process.cwd(), defu(options.jiti, { interopDefault: true, transformOptions: { babel: { plugins: [[babelPluginUntyped, { experimentalFunctions: true }]] } } }) ); const rawSchema = await jiti.import(path.join(__dirname, 'func1.ts')); console.log(rawSchema);
This code cause the issue, i think it's the issue in jiti.
No branches or pull requests
Environment
Node: v22
automd: v0.3.12
Reproduction
Describe the bug
It fails:
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: