UNPKG

y-lwwmap

Version:

a shared CRDT key-value map for Yjs using a "last-write-wins" (LWW) algorithm for conflict resolution

25 lines (22 loc) 610 B
// see https://github.com/rozek/build-configuration-study import typescript from '@rollup/plugin-typescript'; import terser from '@rollup/plugin-terser' export default { input: './src/LWWMap.ts', output: [ { file: './dist/LWWMap.umd.js', format: 'umd', // builds for both Node.js and Browser name: 'LWWMap', // required for UMD modules sourcemap:true, plugins: [terser({ format:{ comments:false, safari10:true } })], },{ file: './dist/LWWMap.esm.js', format: 'esm', sourcemap:true, } ], plugins: [ typescript(), ], };