Skip to content

Instantly share code, notes, and snippets.

View iremlopsum's full-sized avatar

Kristjan Vool iremlopsum

View GitHub Profile
@iRoachie
iRoachie / resolver.md
Created September 4, 2017 13:26
Getting starting with module resolver

Babel Module resolver is a great tool we use to speed up development. Since es6 code has to go through babel anyway to compile to normal js, we can take advantage of this and remap the paths to files.

Firstly install the plugin. npm i -D babel-plugin-module-resolver

Add the paths you want to use to your .babelrc. Here's an example of how it could look with react native.

{