一覧へ戻る
nashdot/rollup-plugin-ternary(新しいタブで開きます)
主要言語: JavaScript
Rollup Plugin: Unpack ternary conditional operators
- star 数
- 1
- watcher 数
- 1
- fork 数
- 2
- issue 数
- 2
- 最終更新
- 2016/02/28
主要言語: JavaScript
Rollup Plugin: Unpack ternary conditional operators
Unpack ternary conditional operators
npm install --save-dev rollup-plugin-ternary
import {rollup} from 'rollup'; import ternary from 'rollup-plugin-ternary'; rollup({ entry: 'src/index.js', plugins: [ ternary({ // Restrict by extension (Default: .js) extensions: [ '.js', '.jsx' ], // Restrict with include or exclude paths (Default: all project directories) include: 'node_modules/**', exclude: 'node_modules/**', // Activate SourceMap (Default: true) sourceMap: true, // Transforms only extra ternary expressions (Default: true) extra: true }) ] });
Copyright (c) 2016 Nashdot, MIT License