compatible with yjs@v13-79

This commit is contained in:
Kevin Jahns
2019-04-24 08:07:37 +02:00
parent 9208e699e2
commit 01519447ca
6 changed files with 14846 additions and 69 deletions

View File

@@ -1,15 +1,15 @@
export default {
input: './src/y-websocket.js',
external: id => /^(funlib|yjs|y-protocols)/.test(id),
external: id => /^(lib0|yjs|y-protocols)/.test(id),
output: [{
name: 'y-websocket',
file: 'dist/y-websocket.js',
format: 'cjs',
sourcemap: true,
paths: path => {
if (/^funlib\//.test(path)) {
return `lib0/dist${path.slice(6)}`
} else if (/^y\-protocols\//.test(path)) {
if (/^lib0\//.test(path)) {
return `lib0/dist${path.slice(4)}`
} else if (/^y-protocols\//.test(path)) {
return `y-protocols/dist${path.slice(11)}`
}
return path