Markus Tackercoderbyheart@chaos.social
Aug 7, 2024, 11:32 AMIt sucks a bit that I still have to wrangle with three module loaders when building a frontend app in #vite:
- the one that configures how vite is found in the project (https://nodejs.org/api/packages.html#subpath-imports)
- the one that configures how vite finds sources (https://vitejs.dev/config/shared-options#resolve-alias)
- tsconfig.json for #TypeScript (https://www.typescriptlang.org/tsconfig/#paths)
I haven't found a perfect solution to get this to work everywhere "import foo from '#component/mymodule'".