How to use rollup-plugin-ts - 1 common examples

To help you get started, we’ve selected a few rollup-plugin-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Raiondesu / Tuex / build / index.js View on Github external
var config = require('./rollup');
var uglify = require('rollup-plugin-uglify');
var typescript = require('rollup-plugin-ts').default;
var version = process.env.VERSION || require('../package.json').version;

var banner = `/**
* Tuex v${version}
* (c) ${new Date().getFullYear()} Alexey Iskhakov
* @license MIT
*/

`;

export default config.concat(
  config.map(c => {
    var _c = { ...c };
    _c.output = { ..._c.output };
    _c.output.file = _c.output.file.replace('.js', '.min.js');
    if (_c.output.format !== 'umd')

rollup-plugin-ts

A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc

MIT
Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis

Popular rollup-plugin-ts functions