![]() ![]() Following the line of thought that the browser key is offered out-of-the-box and do something very similar, I was thinking that it was very odd to leverage this to an external plugin. Hey Yehonal, I really liked your approach and this was exactly what I was looking for. Now you can use inside your code to access to all files starting from the root of your project folder.run npm install to let npm creating the link inside node_modules for you.I think that this method is even more powerful than module-alias since it works also when your package is included as dependency (while module-alias has a limitation for it). Now you can use inside your code to access to all files starting from the root of your project folder.Ĭonst m圜lass = or import m圜lass from if you want full support of visual studio code intellisense you should set the "paths" option inside your tsconfig.json or jsconfig.json: "paths": : [ Run npm install to let npm creating the link inside node_modules for you ![]() "name": Add your package as a "self-dev-dependency" pointing to the root of your project:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |