This pull request includes updates to the tsconfig.json file, aligning it with modern development practices. The changes introduced are as follows:
Changes
"moduleResolution": "Bundler": Since TypeScript 5.0, the "moduleResolution" configuration now deprecates the Node.js resolution modes ("Node" and "Node10") in favor of "Bundler". This setting is designed for compatibility with bundlers. In contrast to the Node.js resolution modes, the "Bundler" mode allows seamless usage of "imports" and "exports" without the need for file extensions on relative paths in imports.
"moduleDetection": "force": Enabling this option ensures that every non-declaration file is treated as a module, providing a more consistent and predictable module handling approach.
"isolatedModules": true: TypeScript will now issue warnings for code that might not be correctly interpreted by a single-file transpilation process, helping catch potential issues early in the development process.
"verbatimModuleSyntax": true: Forces type imports to be flagged with a type modifier. This is particularly useful for bundlers, as it signals upfront that the code won't be used as a value, allowing the bundler to exclude it from the generated JavaScript code.
"noEmit": true: It was used as a flag on typecheck script, now it is part of tsconfig.json
Description
This pull request includes updates to the tsconfig.json file, aligning it with modern development practices. The changes introduced are as follows:
Changes
"moduleResolution": "Bundler"
: Since TypeScript 5.0, the "moduleResolution" configuration now deprecates the Node.js resolution modes ("Node" and "Node10") in favor of "Bundler". This setting is designed for compatibility with bundlers. In contrast to the Node.js resolution modes, the "Bundler" mode allows seamless usage of "imports" and "exports" without the need for file extensions on relative paths in imports."moduleDetection": "force"
: Enabling this option ensures that every non-declaration file is treated as a module, providing a more consistent and predictable module handling approach."isolatedModules": true
: TypeScript will now issue warnings for code that might not be correctly interpreted by a single-file transpilation process, helping catch potential issues early in the development process."verbatimModuleSyntax": true
: Forces type imports to be flagged with atype
modifier. This is particularly useful for bundlers, as it signals upfront that the code won't be used as a value, allowing the bundler to exclude it from the generated JavaScript code."noEmit": true
: It was used as a flag ontypecheck
script, now it is part of tsconfig.json