booleanfalseWhether to disable TypeScript type checker during compilation.
By default, Modern.js will run the TypeScript type checker in a separate process during the build process. Its checking logic is consistent with TypeScript's native tsc command. You can use tsconfig.json or tools.tsChecker config to customize the checking behavior.
Disable TypeScript type checker:
export default {
output: {
disableTsChecker: true,
},
};Disable type checker in development:
export default {
output: {
disableTsChecker: process.env.NODE_ENV === 'development',
},
};Disable type checker in production:
export default {
output: {
disableTsChecker: process.env.NODE_ENV === 'production',
},
};It is not recommended to disable type checker in production, which will reduce the stability of the production code, please use it with caution.