Closed Edouard127 closed 1 year ago
Tsc-alias wil try to resolve to filepath. But because the filepath is not complete it won't find the find and thus not replace the alias. This problem could be solved by using a custom replacer.
Tsc-alias wil try to resolve to filepath. But because the filepath is not complete it won't find the find and thus not replace the alias. This problem could be solved by using a custom replacer.
Can't it just replace the @ ?
It doesn't seem to work on any import()
regardless of if it contains a variable like for OP or if it's a static path used for lazy loading.
I tried to import a module dynamically with my directory alias as such
And it resulted with the following error:
Error: Cannot find module '@/client/events/guildCreate.js'
Here is my build command:
I'm using the latest release of tsc-alias