You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// vite.config.tsexportdefaultdefineConfig({vitApp({// vit configs ...}),// some other vite configs ...resolve: {alias: {"~/": path.resolve(__dirname,"./"),"~": path.resolve(__dirname,"./node_modules/"),"@/": path.resolve(__dirname,"/src/"),"~@/": path.resolve(__dirname,"/src/"),"lodash": 'lodash-es',"~antd": path.resolve(__dirname,"./node_modules/antd/"),},},})
The text was updated successfully, but these errors were encountered:
cdll
changed the title
is vit support vites' resolve.alias ?
is vit support vite's resolve.alias ?
Aug 7, 2023
vitApp config should place in plugins. resolve.alias is Vite supported, not vitjs. On the other hand, you can try https://www.npmjs.com/package/vite-tsconfig-paths instead of manual configuration.
the code below seems not working :
The text was updated successfully, but these errors were encountered: