-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Script Adapter: Support importing TypeScript using a TypeScript loader (optionally) #10
Comments
Hey @Lordfirespeed thanks for this! Any news regarding the usage of your own adapter? Just to understand if your PR is still valid 👍 or new findings or needs from your side. Cheers! |
It works great! I ran into one issue with it when trying to load config in a next.js application - namely, ran into some error r.e. webpack trying to bundle esbuild, etc. but that's a separate issue. As long as I specify the config directory to my dev server 'watch' option, my server auto reloads as I would usually expect. And I don't have to recompile the project for configuration changes to be reflected in the built project. Overall - success :) |
thanks @Lordfirespeed ! I will then clone + double check your PR ;), cheers! |
No worries! Keep #12 in mind - I am worried something I did may have broken the TypeScript types' compatibility with some versions of zod ... |
Hello, me again! Hope you're well.
Thinking of doing something like postcss-load-config whereby
tsx
andjiti
are optional peer dependencies used to import TypeScript files from a JavaScript context.In transpiled projects, this would have the benefit that changes to script config files would not require the project to be 'built (transpiled) for changes to the config to be reflected.
let me know what you think! I'll start working on the code for it either way, since I can just define the adapter in my project if you'd rather not bloat the library :)
The text was updated successfully, but these errors were encountered: