
I have ! as alias for root folder of project using:
"env": {
"development": {
"presets": ["next/babel", "flow"],
"plugins": [
["babel-plugin-root-import", [
{
"rootPathPrefix": "!"
}
]]
]
},
...
Is there a way to fix this with flow?
If I'm not mistaking, what you're looking for is the module.name_mapper option of .flowconfig. I'm sorry I never used and suck with regex, but this is supposed to work!
@AugustinLF thanks! I'm not very good with regex either :( I'll play around and see if I get it to work.
got it working with
[options]
module.name_mapper='!'->'<PROJECT_ROOT>'
Most helpful comment
got it working with