Answer
Ove
rf
low
Answer Overflow Logo
GitHub
Get Started
Login
GitHub
Open popover
R
Reactiflux
help-js
Join Server
✅ – echoloid – 13-55 Mar 15
E
echoloid
View on Discord
3/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'
G
ghardin137
View on Discord
3/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
E
echoloid
View on Discord
3/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...
E
echoloid
View on Discord
3/16/2023
✅
UU
Unknown User
View on Discord
3/16/2023
3 Messages Not Public
Sign In & Join Server To View