Advanced
TypeScript
Q90 / 100
What does the "--isolatedModules" compiler flag warn against?
Correct! Well done.
Incorrect.
The correct answer is B) Code constructs that cannot be correctly compiled when each file is transpiled independently, such as re-exporting types without "export type"
B
Correct Answer
Code constructs that cannot be correctly compiled when each file is transpiled independently, such as re-exporting types without "export type"
Explanation
isolatedModules ensures every file can be safely transpiled in isolation (as tools like Babel or esbuild do), flagging things like non-type re-exports of types that require whole-program type information.
Progress
90/100