mirror of
https://github.com/yjs/yjs.git
synced 2025-12-16 03:37:50 +01:00
large scale refactoring
This commit is contained in:
80
rollup.config.js
Normal file
80
rollup.config.js
Normal file
@@ -0,0 +1,80 @@
|
||||
import nodeResolve from 'rollup-plugin-node-resolve'
|
||||
import commonjs from 'rollup-plugin-commonjs'
|
||||
import babel from 'rollup-plugin-babel'
|
||||
import uglify from 'rollup-plugin-uglify-es'
|
||||
|
||||
export default [{
|
||||
input: './index.js',
|
||||
output: {
|
||||
name: 'Y',
|
||||
file: 'build/yjs.umd.js',
|
||||
format: 'umd',
|
||||
sourcemap: true
|
||||
}
|
||||
}, {
|
||||
input: 'tests/index.js',
|
||||
output: {
|
||||
file: 'build/y.test.js',
|
||||
format: 'iife',
|
||||
name: 'ytests',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve({
|
||||
main: true,
|
||||
module: true
|
||||
}),
|
||||
commonjs()
|
||||
]
|
||||
}, {
|
||||
input: './examples/prosemirror.js',
|
||||
output: {
|
||||
name: 'prosemirror',
|
||||
file: 'examples/build/prosemirror.js',
|
||||
format: 'iife',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve({
|
||||
sourcemap: true,
|
||||
module: true
|
||||
}),
|
||||
commonjs(),
|
||||
babel(),
|
||||
uglify()
|
||||
]
|
||||
}, {
|
||||
input: './examples/textarea.js',
|
||||
output: {
|
||||
name: 'textarea',
|
||||
file: 'examples/build/textarea.js',
|
||||
format: 'iife',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve({
|
||||
sourcemap: true,
|
||||
module: true
|
||||
}),
|
||||
commonjs(),
|
||||
babel(),
|
||||
uglify()
|
||||
]
|
||||
}, {
|
||||
input: './examples/quill.js',
|
||||
output: {
|
||||
name: 'textarea',
|
||||
file: 'examples/build/quill.js',
|
||||
format: 'iife',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve({
|
||||
sourcemap: true,
|
||||
module: true
|
||||
}),
|
||||
commonjs(),
|
||||
babel(),
|
||||
uglify()
|
||||
]
|
||||
}]
|
||||
Reference in New Issue
Block a user