JS lifehack: put common utilities in a node_modules directory *inside* src, so you can import w/o '../../'. Unlike faffy alias configs, this works consistently across bundlers, and you'll still get completion hints/typechecking etc. Just remember not to gitignore that directory pic.twitter.com/hQzCCPPdNp
— Rich Harris (@Rich_Harris) June 15, 2019
2019년 6월 16일 일요일
RT @Rich_Harris: JS lifehack: put common utilities in a node_modules directory *inside* src, so you can import w/o '../../'. Unlike faffy alias configs, this works consistently across bundlers, and you'll still get completion hints/typechecking etc. Just remember not to gitignore that directory https://t.co/hQzCCPPdNp
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기