Skip to content

Commit 656d947

Browse files
committed
fix y-protocols import
1 parent a89c8e9 commit 656d947

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

rollup.config.mjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export default [{
2-
input: ['./src/y-websocket.js'],
3-
external: id => /^(lib0|yjs|y-protocols|ws|http)/.test(id),
4-
output: [{
5-
dir: 'dist',
6-
format: 'cjs',
7-
sourcemap: true,
8-
entryFileNames: '[name].cjs',
9-
chunkFileNames: '[name]-[hash].cjs'
10-
}]
11-
}
1+
export default [{
2+
input: ['./src/y-websocket.js'],
3+
external: id => /^(lib0|yjs|@y|y-protocols|ws|http)/.test(id),
4+
output: [{
5+
dir: 'dist',
6+
format: 'cjs',
7+
sourcemap: true,
8+
entryFileNames: '[name].cjs',
9+
chunkFileNames: '[name]-[hash].cjs'
10+
}]
11+
}
1212
]

src/y-websocket.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import * as bc from 'lib0/broadcastchannel'
99
import * as time from 'lib0/time'
1010
import * as encoding from 'lib0/encoding'
1111
import * as decoding from 'lib0/decoding'
12-
import * as syncProtocol from 'y-protocols/sync'
13-
import * as authProtocol from 'y-protocols/auth'
14-
import * as awarenessProtocol from 'y-protocols/awareness'
12+
import * as syncProtocol from '@y/protocols/sync'
13+
import * as authProtocol from '@y/protocols/auth'
14+
import * as awarenessProtocol from '@y/protocols/awareness'
1515
import { ObservableV2 } from 'lib0/observable'
1616
import * as math from 'lib0/math'
1717
import * as url from 'lib0/url'

0 commit comments

Comments
 (0)