tree-walk-util
Version:
walk through a tree data, convert from tree to list or list to tree.
24 lines (22 loc) • 415 B
JavaScript
import typescript from '@rollup/plugin-typescript'
export default [
{
input: 'src/index.ts',
plugins: [typescript()],
output: [
{
file: 'dist/bundle.cjs.js',
format: 'cjs',
},
{
file: 'dist/bundle.umd.js',
format: 'umd',
name: 'treeWalkUtil',
},
{
file: 'dist/bundle.esm.js',
format: 'esm',
},
],
},
]