PathIntellisense
PathIntellisense copied to clipboard
Absolute path with package.json trick
If we include a package.json we are able to use absolute paths. It would be so awesome if this extension was able to do intelli sense for that! Here is an article that explains the package.json absolute path trick - https://medium.com/@davidjwoody/how-to-use-absolute-paths-in-react-native-6b06ae3f65d1
medium.com article
tldr: create packages for your modules
modules/x/package.json
{ "name": "x" }
somewhere/else/index.js
-import x from "../../modules/x/index.js"
+import x from "x/index.js"