Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unplugin-isolated-decl

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-isolated-decl - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

dist/core/transformer.d.cts

2

dist/api.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc