Closed IdanDavidi closed 7 years ago
Hello, I am trying to compile tsx files to jsx files, but they compile to .js files. any idea why?
ts: { server: { files: [{ src: ["src/\*\*/\*.ts", "!src/.baseDir.ts"], dest: "./dist" }], options: { module: "commonjs", target: "es6", sourceMap: false } }, webclient: { files: [{ src: ["clients/WebClient/src/**/*.ts", "clients/WebClient/src/**/*.tsx", "!clients/WebClient/src/.baseDir.ts"], dest: "./dist/public/WebClient/src" }], options: { module: "commonjs", target: "es5", sourceMap: true, jsx: "react" } } },
Thanks.
Use jsx setting preserve.
preserve
https://www.typescriptlang.org/docs/handbook/jsx.html https://github.com/TypeStrong/grunt-ts#jsx
thank you, I wasn't aware of it.
Hello, I am trying to compile tsx files to jsx files, but they compile to .js files. any idea why?
Thanks.