✅ – echoloid – 13-55 Mar 15

Eecholoid3/15/2023
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'
Gghardin1373/15/2023
basically that's built into node. there's a specific search pattern it uses when the import doesn't contain a path indicator
Eecholoid3/16/2023
So it's actually doing the file search like as in regular expressions, or via the grep, sed to find the appropriate file internally...
Eecholoid3/16/2023
UUUnknown User3/16/2023
3 Messages Not Public
Sign In & Join Server To View