Closed
Description
I'm using CRA 2.0's new lerna support #1333 #3741 and it's working great! However, I was wondering if there was a way to support absolute paths for all imports, not just the cross package imports.
Using the example site from #3741,
If cra-comps/comp1/comp1_internal.js
was actually in
cra-comps/comp1/someotherfolder/comp1_internal.js
In comp1.js
, is there a way to import it with:
import addInternal from 'someotherfolder/comp1_internal'
rather than:
'./someotherfolder/comp1_internal'
Given, this example is simple. However, a more complex folder structure makes the relative path imports a pain.
Are absolute paths imports within a package possible in this scenario?
Metadata
Metadata
Assignees
Labels
No labels