@wessberg/rollup-plugin-ts
- Version 2.0.4
- Published
- 2.73 MB
- 10 dependencies
- MIT license
Install
npm i @wessberg/rollup-plugin-ts
yarn add @wessberg/rollup-plugin-ts
pnpm add @wessberg/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 TypescriptPluginBabelOptions
interface TypescriptPluginBabelOptions extends TypescriptPluginBaseOptions {}
property babelConfig
babelConfig?: string | Partial<BabelConfig>;
property transpiler
transpiler: 'babel';
interface TypescriptPluginTypescriptOptions
interface TypescriptPluginTypescriptOptions extends TypescriptPluginBaseOptions {}
property transpiler
transpiler: 'typescript';
Type Aliases
type BrowserslistConfig
type BrowserslistConfig = BrowserslistPathConfig | BrowserslistQueryConfig;
type CustomTransformersFunction
type CustomTransformersFunction = ( options: CustomTransformerOptions) => TS.CustomTransformers;
type DeclarationStats
type DeclarationStats = Record<string, DeclarationChunkStats>;
type TypescriptPluginOptions
type TypescriptPluginOptions = | TypescriptPluginTypescriptOptions | TypescriptPluginBabelOptions | TypescriptPluginSwcOptions;
Package Files (1)
Dependencies (10)
Dev Dependencies (50)
- @babel/core
- @babel/plugin-transform-runtime
- @babel/preset-env
- @babel/runtime
- @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/ts-config
- ava
- babel-preset-minify
- eslint
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jsdoc
- fast-glob
- helpertypes
- husky
- memfs
- np
- npm-check-updates
- pnpm
- prettier
- pretty-quick
- rimraf
- rollup
- sandhog
- semver
- standard-changelog
- ts-node
- 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
Peer Dependencies (8)
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/@wessberg/rollup-plugin-ts
.
- Markdown[](https://www.jsdocs.io/package/@wessberg/rollup-plugin-ts)
- HTML<a href="https://www.jsdocs.io/package/@wessberg/rollup-plugin-ts"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2514 ms. - Missing or incorrect documentation? Open an issue for this package.