@mrbuilder/plugin-typescript
Version:
Typescript plugin for mrbuilder
46 lines (37 loc) • 1.17 kB
Markdown
Provides typescript
| Property | Type | Default | Description |
| ------------- | -----------| -------------| ---------------------------------|
| useBabel | bool | false | Use [babel instead of tsc and ts-loader](https://github.com/a-tarasyuk/webpack-typescript-babel/) all other options are ignored |
Please add a tsconfig.json to your project's root to be able to use
see
```json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": ".",
"suppressExcessPropertyErrors": true,
"declaration": true,
"outDir": "@types",
"target": "es5",
"strictNullChecks": false,
"sourceMap": true,
"skipLibCheck": true,
"jsx": "react",
"lib": [
"dom",
"es2015"
]
},
"files": [
"./src/*.tsx"
]
}
```
Add the above to your project in a file called tsconfig.json - If you see
```html
ERROR in mrbuilder-plugin-typescript/tsconfig.json
[tsl] ERROR
TS18003: No inputs were found in config file 'tsconfig.json'.
Specified 'include' paths were '["./src/**/*"]' and 'exclude'
paths were '["node_modules","**/*.spec.ts"]'.
```