line-truncation
Version:
Line Truncation is a zero dependency tool that truncate text by user defined line number
19 lines (17 loc) • 370 B
JavaScript
// rollup.config.js
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
export default {
input: 'src/index.js',
output: {
file: 'dist/bundle.js',
name: 'LineTruncation',
format: 'umd',
},
plugins: [
resolve(),
babel({
exclude: 'node_modules/**', // only transpile our source code
}),
],
};