-
Hello. Thanks for the great project. I tried to use absolute imports. What I did is to add this to the "paths": {
"@/*": ["./*"]
} Then, I installed the package import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [tsconfigPaths()],
}); It seems to work. But I wanted to ask if this is the correct way to do it or if there is other way or if you plan to incorporate this feature in default setup. Well, thank you very much again for the great framework. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's the correct way as of now. See also: https://github.com/wakujs/waku/tree/main/examples/41_path-alias |
Beta Was this translation helpful? Give feedback.
It's the correct way as of now. See also: https://github.com/wakujs/waku/tree/main/examples/41_path-alias