Replies: 1 comment 1 reply
-
Hey! Thanks for your kind words. It feels great when someone likes your craft :) As you mentioned, the ioc-transformer package does replace the imports identifiers starting with Unfortunately, the TypeScript command line utility In case of AdonisJS, we use the compiler API here. However, there is an alternative command line utility called ttypescript and they allow using transformers. Think of I hope this answers your question. Otherwise, feel free to ask :) |
Beta Was this translation helpful? Give feedback.
-
I'm a big fan of your work and I follow you here on Github daily!
Could you explain how you made this behavior happen in the Adonis ecosystem? If so, could you provide a very simple example of how to reproduce this?
I've been looking at Adonis' organization and found this package ioc-transformer. As I understand it, when compiling TypeScript you search for all imports that have the
@ioc
tag and replace it withioc.use('Adonis/Alias')
. But I didn't understand how you can use this package. Thanks a lot mate, keep up the great work you've been doing for the Node.js communityBeta Was this translation helpful? Give feedback.
All reactions