FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 922 forks source link

[FEATURE] allow golb for alias #3074

Open laurib opened 3 years ago

laurib commented 3 years ago

I have defined paths in my tscongif that i can import from src subfolders like "components", "containers"

"compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "*": ["src/*"]
    }
  }

right now i have to define all folders as aliases in snowpack config..

tomo0613 commented 3 years ago

For vite I found a package vite-tsconfig-paths that solves this issue. there is a similar one for snowpack tsconfig-paths-snowpack-plugin, but I couldn't make it work.