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
we need an option to control whether enable or disable project reference, so I suggest following options
module.exports={resolve: {tsconfig: {configFile: './tsconfig.json',references: ['./a/tsconfig.json','./b.tsconfig.json']|'auto'|undefined// undefined or no value means don't enable project reference// 'auto' means enable auto project reference// ['./a/tsconfig.json','./b/tsconfig.json'] means manual config project reference}}}
and current tsConfigPath is just syntax sugar
{resolve: {tsConfigPath: './tsconfig.json'}}
is syntax sugar of the following and will be deprecated in the future
Modern.js provides a source code build mode, it allows developers to directly reference the source code of other sub-projects within the monorepo for development.
When using webpack, Modern.js uses the references option of tsconfig-paths-webpack-plugin to support TypeScript project references, so that the use of aliases in the sub-project works correctly.
And when using Rspack, we want to take the same behavior, so it would be nice if Rspack can provide an option to control the references.
and current tsConfigPath is just syntax sugar
is syntax sugar of the following and will be deprecated in the future
Originally posted by @hardfist in #4192 (comment)
The text was updated successfully, but these errors were encountered: