Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 819 Bytes

configuration.md

File metadata and controls

19 lines (14 loc) · 819 Bytes

In the root of the project you run mitosis from, you can add a mitosis.config.js file that will be read by Mitosis. Checkout the types for what settings you can provide.Also could specify config file by option: --config=<file>.

Note that you can configure each target generator individually, providing plugins on a case-by-case basis.

TypeScript configuration

TypeScript includes a full-fledged JSX compiler. Add the following configuration to your tsconfig.json to transpile JSX to mitosis-compatible JavaScript:

{
  "compilerOptions": {
    "jsx": "preserve",
    "jsxImportSource": "@builder.io/mitosis",
    // other config here
  }
}

For an example of TS configuration, look at our basic example's tsconfig.json.