File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1465,6 +1465,21 @@ export async function resolveConfig(
14651465 customLogger : config . customLogger ,
14661466 } )
14671467
1468+ const tsconfigPathsPlugin = userPlugins . find (
1469+ ( p ) =>
1470+ p . name === 'vite-tsconfig-paths' ||
1471+ p . name === 'vite-plugin-tsconfig-paths' ,
1472+ )
1473+ if ( tsconfigPathsPlugin ) {
1474+ logger . warnOnce (
1475+ colors . yellow (
1476+ `The plugin ${ JSON . stringify ( tsconfigPathsPlugin . name ) } is detected. ` +
1477+ `Vite now supports tsconfig paths resolution natively via the ${ colors . bold ( 'resolve.tsconfigPaths' ) } option. ` +
1478+ `You can remove the plugin and set ${ colors . bold ( 'resolve.tsconfigPaths: true' ) } in your Vite config instead.` ,
1479+ ) ,
1480+ )
1481+ }
1482+
14681483 // resolve root
14691484 const resolvedRoot = normalizePath (
14701485 config . root ? path . resolve ( config . root ) : process . cwd ( ) ,
You can’t perform that action at this time.
0 commit comments