Configure aliases pages
and types
in tsconfig and vite (#37)
### TL;DR Updated paths in `tsconfig.json` and `vite.config.ts` ### What changed? The paths for `pages` and `types` have been added to both `tsconfig.json` and `vite.config.ts` to support easier importing. ### How to test? Check if imports using the new paths are working correctly in the code. ### Why make this change? These changes seem to be for better organization and accessibility of different parts of the code by providing clear and quick paths for `pages` and `types`.
This commit is contained in:
commit
327ac62186
@ -27,7 +27,8 @@
|
|||||||
"utils/*": ["./src/utils/*"],
|
"utils/*": ["./src/utils/*"],
|
||||||
"assets/*": ["./src/assets/*"],
|
"assets/*": ["./src/assets/*"],
|
||||||
"context/*": ["./src/context/*"],
|
"context/*": ["./src/context/*"],
|
||||||
"components/*": ["./src/components/*"]
|
"components/*": ["./src/components/*"],
|
||||||
|
"pages/*": ["./src/pages/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
|
@ -10,6 +10,8 @@ export default defineConfig({
|
|||||||
assets: '/src/assets',
|
assets: '/src/assets',
|
||||||
context: '/src/context',
|
context: '/src/context',
|
||||||
components: '/src/components',
|
components: '/src/components',
|
||||||
|
pages: '/src/pages',
|
||||||
|
types: '/src/types',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
|
Loading…
Reference in New Issue
Block a user