mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
- fix for mts and cts file types being ignored #446
This commit is contained in:
parent
3d79aedad4
commit
027639a4ad
@ -152,11 +152,11 @@ See [#108](https://github.com/ezolenko/rollup-plugin-typescript2/issues/108)
|
||||
Path to cache.
|
||||
Defaults to a folder in `node_modules`.
|
||||
|
||||
* `include`: `[ "*.ts+(|x)", "**/*.ts+(|x)" ]`
|
||||
* `include`: `[ "*.ts+(|x)", "**/*.ts+(|x)", "**/*.cts", "**/*.mts" ]`
|
||||
|
||||
By default compiles all `.ts` and `.tsx` files with TypeScript.
|
||||
|
||||
* `exclude`: `[ "*.d.ts", "**/*.d.ts" ]`
|
||||
* `exclude`: `[ "*.d.ts", "**/*.d.ts", "**/*.d.cts", "**/*.d.mts" ]`
|
||||
|
||||
But excludes type definitions.
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rollup-plugin-typescript2",
|
||||
"version": "0.34.2",
|
||||
"version": "0.35.0",
|
||||
"description": "Seamless integration between Rollup and TypeScript. Now with errors.",
|
||||
"main": "dist/rollup-plugin-typescript2.cjs.js",
|
||||
"module": "dist/rollup-plugin-typescript2.es.js",
|
||||
|
||||
@ -95,8 +95,8 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
|
||||
verbosity: VerbosityLevel.Warning,
|
||||
clean: false,
|
||||
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts"],
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)", "**/*.cts", "**/*.mts"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts", "**/*.d.cts", "**/*.d.mts"],
|
||||
abortOnError: true,
|
||||
rollupCommonJSResolveHack: false,
|
||||
tsconfig: undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user