✅ – echoloid – 13-55 Mar 15

May I know, How the statement import {react} from "react" Able to find the actual react module present in the node_modules without using any absolute path like '../node_modules/react'
G
ghardin137400d ago
basically that's built into node. there's a specific search pattern it uses when the import doesn't contain a path indicator
E
echoloid400d ago
So it's actually doing the file search like as in regular expressions, or via the grep, sed to find the appropriate file internally... ✅
UU
Unknown User399d ago