unplugin-isolated-decl
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1,1 +0,1 @@ | ||
export {}; | ||
export { oxcTransform, swcTransform, tsTransform } from './core/transformer'; |
@@ -0,7 +1,11 @@ | ||
import type { TranspileOptions } from 'typescript'; | ||
import type { FilterPattern } from '@rollup/pluginutils'; | ||
export interface Options { | ||
export type Options = (({ | ||
include?: FilterPattern; | ||
exclude?: FilterPattern; | ||
enforce?: (('pre') | ('post') | (undefined)); | ||
} | ||
}) & ((({transformer?: (('oxc') | ('swc'))}) | ({ | ||
transformer: 'typescript'; | ||
transformOptions?: TranspileOptions; | ||
})))); | ||
type Overwrite<T, U> = ((Pick<T, Exclude<keyof T, keyof U>>) & (U)); | ||
@@ -8,0 +12,0 @@ export type OptionsResolved = Overwrite<Required<Options>, Pick<Options, 'enforce'>>; |
@@ -1,2 +0,3 @@ | ||
import { IsolatedDecl } from "./src_index--o4926Ps.js"; | ||
import "./transformer-m4c_uotZ.js"; | ||
import { IsolatedDecl } from "./src_index-OeLmVd0z.js"; | ||
@@ -3,0 +4,0 @@ //#region src/esbuild.ts |
@@ -1,3 +0,4 @@ | ||
import { IsolatedDecl } from "./src_index--o4926Ps.js"; | ||
import "./transformer-m4c_uotZ.js"; | ||
import { IsolatedDecl } from "./src_index-OeLmVd0z.js"; | ||
export { IsolatedDecl }; |
@@ -1,2 +0,3 @@ | ||
import { IsolatedDecl } from "./src_index--o4926Ps.js"; | ||
import "./transformer-m4c_uotZ.js"; | ||
import { IsolatedDecl } from "./src_index-OeLmVd0z.js"; | ||
@@ -3,0 +4,0 @@ //#region src/rolldown.ts |
@@ -1,2 +0,3 @@ | ||
import { IsolatedDecl } from "./src_index--o4926Ps.js"; | ||
import "./transformer-m4c_uotZ.js"; | ||
import { IsolatedDecl } from "./src_index-OeLmVd0z.js"; | ||
@@ -3,0 +4,0 @@ //#region src/rollup.ts |
@@ -1,2 +0,3 @@ | ||
import { IsolatedDecl } from "./src_index--o4926Ps.js"; | ||
import "./transformer-m4c_uotZ.js"; | ||
import { IsolatedDecl } from "./src_index-OeLmVd0z.js"; | ||
@@ -3,0 +4,0 @@ //#region src/vite.ts |
{ | ||
"name": "unplugin-isolated-decl", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A blazing-fast tool for generating isolated declarations, powered by Oxc.", | ||
@@ -70,2 +70,14 @@ "type": "module", | ||
}, | ||
"peerDependencies": { | ||
"@swc/core": "^1.6.6", | ||
"typescript": "^5.5.2" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@swc/core": { | ||
"optional": true | ||
}, | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -77,2 +89,3 @@ "@rollup/pluginutils": "^5.1.0", | ||
"devDependencies": { | ||
"@swc/core": "^1.6.6", | ||
"@sxzz/eslint-config": "^3.13.0", | ||
@@ -79,0 +92,0 @@ "@sxzz/prettier-config": "^2.0.2", |
@@ -10,3 +10,4 @@ # unplugin-isolated-decl [![npm](https://img.shields.io/npm/v/unplugin-isolated-decl.svg)](https://npmjs.com/package/unplugin-isolated-decl) | ||
- 🚀 **Fast**: Blazing-fast `.d.ts` generator, powered by Oxc. | ||
- 🎯 **Isolated**: Generate isolated declarations for each file. | ||
- 🎨 **Transformer**: Support Oxc, SWC, and TypeScript transformer. | ||
- 📦 **Zero Config**: No configuration required, works out of the box. | ||
- ✨ **Bundler Support**: Works with Vite, Rollup, and esbuild. | ||
@@ -78,2 +79,19 @@ | ||
## Options | ||
```ts | ||
export interface Options { | ||
include?: FilterPattern | ||
exclude?: FilterPattern | ||
enforce?: 'pre' | 'post' | undefined | ||
/** | ||
* If you use swc or typescript, you need to install `@swc/core` or `typescript` yourself. | ||
* @default oxc | ||
*/ | ||
transformer?: 'oxc' | 'swc' | 'typescript' | ||
/** Only for typescript transformer */ | ||
transformOptions?: TranspileOptions | ||
} | ||
``` | ||
## Sponsors | ||
@@ -80,0 +98,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25695
35
534
106
5
15