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
vite.config.ts
sveltekit
jiti fails to load a vite.config.ts file, when that file calls the sveltekit plugin. (like the one that comes with the sveltekit demo app)
[jiti] [transpile] [esm] /home/nbe/projects/playground/repro-jiti-sveltekit/ts.js (4.032ms) /home/nbe/projects/playground/repro-jiti-sveltekit/ts.js:5 exports.ts = ts = (await Promise.resolve().then(() => require('typescript'))).default; SyntaxError: Unexpected identifier 'Promise'
Here is a minimal reproduction which includes only the single file from the sveltekit repo that jiti errors on. The steps are in the readme.
await
I was taking a stab at fixing a knip issue which is currently blocked by this error.
System: OS: Linux 6.1 NixOS 24.05 (Uakari) 24.05 (Uakari) CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12900K Memory: 20.28 GB / 31.13 GB Container: Yes Shell: 5.9 - /run/current-system/sw/bin/zsh Binaries: Node: 20.10.0 - /etc/profiles/per-user/nbe/bin/node npm: 10.2.3 - /etc/profiles/per-user/nbe/bin/npm pnpm: 8.10.5 - /etc/profiles/per-user/nbe/bin/pnpm
The text was updated successfully, but these errors were encountered:
I just realized that I forgot to link to the minimal repro 🤦🏼♂️
https://github.com/thenbe/repro-jiti-sveltekit
Sorry, something went wrong.
No branches or pull requests
jiti fails to load a
vite.config.ts
file, when that file calls thesveltekit
plugin. (like the one that comes with the sveltekit demo app)Error
Reproduction
Here is a minimal reproduction which includes only the single file from the sveltekit repo that jiti errors on. The steps are in the readme.
Questions
await
is not supported #72 will also fix this issue?Context
I was taking a stab at fixing a knip issue which is currently blocked by this error.
Environment
Environment
The text was updated successfully, but these errors were encountered: