Skip to content

Serverless Offline does not compiles tsx files #285

@tmchedlishvili

Description

@tmchedlishvili

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions