rollup-plugin-ts
- Version 3.4.5
- Published
- 2.9 MB
- 10 dependencies
- MIT license
Install
npm i rollup-plugin-ts
yarn add rollup-plugin-ts
pnpm add rollup-plugin-ts
Overview
A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc
Index
Functions
Interfaces
Type Aliases
Functions
function typescriptRollupPlugin
typescriptRollupPlugin: ( pluginInputOptions?: Partial<TypescriptPluginOptions>) => Plugin;
A Rollup plugin that transpiles the given input with Typescript
Interfaces
interface BrowserslistPathConfig
interface BrowserslistPathConfig {}
property path
path: string;
interface BrowserslistQueryConfig
interface BrowserslistQueryConfig {}
property query
query: string[] | string;
interface CustomTransformerOptions
interface CustomTransformerOptions {}
property printer
printer: TS.Printer;
property program
program: TS.Program | undefined;
property typescript
typescript: typeof TS;
method addDiagnostics
addDiagnostics: (...diagnostics: ExtendedDiagnostic[]) => void;
interface DeclarationChunkStats
interface DeclarationChunkStats {}
property externalTypes
externalTypes: ExternalType[];
interface ExternalType
interface ExternalType {}
interface TypescriptPluginOptions
interface TypescriptPluginOptions {}
property babelConfig
babelConfig?: string | Partial<BabelConfig>;
property browserslist
browserslist?: false | string[] | string | BrowserslistConfig;
property cwd
cwd: string;
property debug
debug: boolean | DebugOptionCallback;
property exclude
exclude: string[] | string;
property fileSystem
fileSystem: TS.System;
property hook
hook: Partial<HookRecord>;
property include
include: string[] | string;
property swcConfig
swcConfig?: string | MaybeArray<Partial<SwcConfig>>;
property transformers
transformers?: | (TS.CustomTransformers | CustomTransformersFunction)[] | TS.CustomTransformers | CustomTransformersFunction;
property transpileOnly
transpileOnly?: boolean;
property transpiler
transpiler: Transpiler | TranspilerOptions;
property tsconfig
tsconfig?: | string | Partial<TS.CompilerOptions> | Partial<InputCompilerOptions> | TS.ParsedCommandLine | TsConfigResolver | TsConfigResolverWithFileName;
property typescript
typescript: typeof TS;
Type Aliases
type BrowserslistConfig
type BrowserslistConfig = BrowserslistPathConfig | BrowserslistQueryConfig;
type CustomTransformersFunction
type CustomTransformersFunction = ( options: CustomTransformerOptions) => TS.CustomTransformers;
type DeclarationStats
type DeclarationStats = Record<string, DeclarationChunkStats>;
Package Files (1)
Dependencies (10)
Dev Dependencies (61)
- @babel/core
- @babel/plugin-transform-runtime
- @babel/preset-env
- @babel/preset-typescript
- @babel/runtime
- @prettier/sync
- @rollup/plugin-alias
- @rollup/plugin-commonjs
- @rollup/plugin-json
- @rollup/plugin-multi-entry
- @swc/core
- @swc/helpers
- @types/babel__core
- @types/node
- @types/prettier
- @types/semver
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- @wessberg/prettier-config
- @wessberg/ts-config
- ava
- babel-preset-minify
- cross-env
- eslint
- eslint-config-prettier
- eslint-plugin-deprecation
- eslint-plugin-import
- eslint-plugin-jsdoc
- helpertypes
- husky
- lint-staged
- memfs
- np
- npm-check-updates
- pnpm
- prettier
- rimraf
- rollup
- rollup_3_15_0
- sandhog
- semver
- standard-changelog
- tsx
- typescript
- typescript-3-4-1
- typescript-3-5-1
- typescript-3-6-2
- typescript-3-7-2
- typescript-3-8-3
- typescript-3-9-2
- typescript-4-0-3
- typescript-4-1-2
- typescript-4-2-4
- typescript-4-3-5
- typescript-4-4-2
- typescript-4-5-4
- typescript-4-6-4
- typescript-4-7-2
- typescript-4-8-2
- typescript-4-9-4
- typescript-5-0-4
Peer Dependencies (9)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rollup-plugin-ts
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rollup-plugin-ts)
- HTML<a href="https://www.jsdocs.io/package/rollup-plugin-ts"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2314 ms. - Missing or incorrect documentation? Open an issue for this package.