You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, the `path` may be `/some/path/index.d.ts`, and `kind` be `declaration`, and you might want to rewrite this to `/some/path/my-typings.d.ts`.
427
+
428
+
## Full list of plugin options
429
+
430
+
The plugin options are documented in more detail across this README, but the full list of options is:
431
+
432
+
#### `transpiler`
433
+
434
+
Type: `"typescript" | "babel"`
435
+
436
+
Can be any of `"babel"` or `"typescript"` (default: `"typescript"`).
437
+
See [this section](#combining-typescript-with-babel) and [this section](#when-combined-with-babel-what-does-typescript-do-and-what-does-babel-do) for details on how `rollup-plugin-ts` works when `"babel"` is being used as a transpiler.
438
+
439
+
#### `babelConfig`
440
+
441
+
Type: `string | Partial<IBabelInputOptions>`
442
+
443
+
This option will only be respected when `"babel"` is being used as the `transpiler` and can be used to provide a [Babel config](https://babeljs.io/docs/en/options) or a path to one.
Provide the Typescript [CompilerOptions](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to use, or a path to a `tsconfig` with this property.
450
+
See [this section](#using-it-with-just-typescript) for details on the many ways this property can be configured.
Use this property to provide Typescript [`CustomTransformers`](https://github.com/Microsoft/TypeScript/pull/13940).
470
+
See [this section](#using-customtransformers) for more details on how to configure this property.
471
+
472
+
#### `include`
473
+
474
+
Type: `string[]|string`
475
+
476
+
This option takes a minimatch pattern or an array of minimatch patterns and only transforms files with filenames that the pattern matches.
477
+
478
+
#### `exclude`
479
+
480
+
Type: `string[]|string`
481
+
482
+
This option takes a minimatch pattern or an array of minimatch patterns and only transforms files with filenames that the pattern doesn't match.
483
+
484
+
#### `transpileOnly`
485
+
486
+
Type: `boolean`
487
+
488
+
If this option is `true`, diagnostics won't be generated. This will improve performance since Typescript but ignores all syntactical and semantic errors or warnings that may arise.
489
+
490
+
#### `fileSystem`
491
+
492
+
Optionally the [FileSystem](https://github.com/wessberg/rollup-plugin-ts/blob/master/src/util/file-system/file-system.ts) to use. This is useful for example when you want to provide a virtual FileSystem to read from or write to.
493
+
494
+
#### `hook`
495
+
496
+
Use this property to get hooks into the internals of `rollup-plugin-ts`.
497
+
See [this section](#hooks) for more details.
498
+
380
499
## Ignored/overridden options
381
500
382
501
Typescript and Babel are powerful tools in their own right. Combined with Rollup, they become even more powerful.
0 commit comments