.
├── bar
│ ├── deeply
│ │ └── nested
│ │ └── index.js
│ └── package.json
├── foo
│ ├── deeply
│ │ └── nested
│ │ └── index.js
│ └── package.json
├── foobar
│ ├── deeply
│ │ └── nested
│ │ └── index.js
│ └── package.json
├── index.js
└── directory-structure.md
Last active
January 5, 2019 04:17
-
-
Save imranariffin/04cf988eae962fe8c0189044b1fb7820 to your computer and use it in GitHub Desktop.
Nodejs/Javascript Better import paths aka no more `import from '../../../'`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default () => 'bar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "bar" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default () => 'foo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "foo" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import foo from '@foo/deeply/nested' | |
import bar from '@bar/deeply/nested' | |
export default () => console.log(foo(), bar()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "foobar" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import foobar from '@foobar/deeply/nested' | |
foobar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment