serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
781 stars 222 forks source link

Serverless Offline does not compiles tsx files #285

Open tmchedlishvili opened 1 year ago

tmchedlishvili commented 1 year ago

Here is my tsConfig and my goal is to have compiled tsx files in a build.

`{
  "compilerOptions": {
    "pretty": true,
    "outDir": "./dist",
    "baseUrl": "./src",
    "sourceMap": true,
    "target": "es6",
    "module": "commonjs",
    "jsx": "react",
    "moduleResolution": "node",
    "skipLibCheck": true,
  },
  "include": ["src/**/*.ts","src/**/*.tsx"],
  "exclude": ["node_modules", "tests", ".vscode"]
}`

When I'm building project with tsc command it works fine and tsx files are compiled, but when it is built with [serverless-plugin-typescript) it misses tsx files

Any workeround?