Directory tree:
.
├── package.json
├── src
│ ├── entrypoint.tsx
│ ├── index.html
│ └── ui
│ ├── App.tsx
│ └── shared
│ └── Reset.ts
├── start.sh
└── tsconfig.json
TypeScript's tsconfig.json
sets paths
to
Parcel's ~
module resolution convention
and baseUrl
to src
directory.
Parcel is given src/index.html
as its input,
which references src/entrypoint.tsx
.
All TypeScript files in src
may use the ~
non-relative import paths.
I'm not working on any TypeScript + Parcel projects at the moment but if someone has an updated working version, I can try to replicate locally and then update the original Gist for future folks.