serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

Serverless Offline does not compiles tsx files

Open tmchedlishvili opened this issue 2 years ago • 0 comments

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?

tmchedlishvili avatar Mar 27 '23 14:03 tmchedlishvili