I have an iife that I would like to compile and I import statement for types. In TypeScript version 3.* it compiles correctly. But in TypeScript version 4.* it appends an export {}. Is there a way to prevent that? Here is the typescript file test.ts: import { Tester } from "./tester" (async function test() […]
- Tags "allowJs": true, "alwaysStrict": true, "compileOnSave": true, "include": [ "./src/**/*.ts", "module": "es2015", "moduleResolution": "node", "noFallthroughCasesInSwitch": true, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, "outDir": "./public/app", "skipLibCheck": true, "src/**/*.js"], "src/**/*spec.ts" ] } The command I use for it: tsc -p ./tsconfig.json Update I added this bug report to TypeScript. https://github.co, "src/app/meals/add/index.template.js", "src/app/utils/html-template-tag.js" ], "strict": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, //"strictBindCallApply": true, exclude: /node_modules/, I have an iife that I would like to compile and I import statement for types. In TypeScript version 3.* it compiles correctly. But in TypeScr