mjs nodejs support

This commit is contained in:
Kevin Jahns
2018-11-25 22:39:30 +01:00
parent e4a5f2caec
commit c12d00b227
122 changed files with 669 additions and 503 deletions

View File

@@ -4,8 +4,8 @@
/* eslint-env browser */
import * as Y from '../../index.js'
export * from '../../index.js'
import * as Y from '../../index.mjs'
export * from '../../index.mjs'
const messageSync = 0
const messageAwareness = 1

View File

@@ -2,8 +2,9 @@
* @module provider/websocket
*/
const Y = require('../../build/yjs.umd.js')
const WebSocket = require('ws')
import * as Y from '../../index.mjs'
import WebSocket from 'ws'
const wss = new WebSocket.Server({ port: 1234 })
const docs = new Map()