Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 781 Bytes

challenge.md

File metadata and controls

15 lines (9 loc) · 781 Bytes

Challenge

Here is all the challenge I want to take note for me and everyone who interested in building your own UI library

IDE cannot find correct declaration file

Cannot resolve module resolution (path)

  • Typescript don't automatically resolve path alias during compile. So in emitted code, we cannot resolve these source build
  • Solution: using tspath after build to use it
  • However, this solution has a trouble, trouble is tspath only resolve js source but not declaration file. ===> Still hard to jump to source using IDE (in my case it's Webstorm)