-
Notifications
You must be signed in to change notification settings - Fork 15
Import from parent module #36
Copy link
Copy link
Open
Description
I can't import modules that are parent to the main index.js, so the following don't work:
import other from './other.js';
import parnt from '../parent.js'; // <-- can't do this
console.log('indexjs' + other() + parnt());I have JS code that's shared amongst 2 projects so I put the code in the parent folder.
My workaround now is to symbolic link the parent folder with all the shared code to each of the project folder.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels