Type-only import leaking in bare imports
Type-only import leaking in bare imports: a task in LegoFlow-SWE (Harbor dataset). When a developer imports a type using a bare import { Foo } statement (without the type keyword), the import is preserved in the compiled output and reaches the browser. If the imported module only provides Foo as a…
The task
When a developer imports a type using a bare `import { Foo }` statement (without the `type` keyword), the import is preserved in the compiled output and reaches the browser. If the imported module only provides `Foo` as a type and not as a runtime value, the browser throws an error like:
Part of Lego-X/LegoFlow-SWE.