Uncomment ES6 module syntax

This removes the special comment part of the ES6 module syntax,
opting to enable ES6 module syntax by default.

It also appends `.js` to all import paths to better support in-browser
loading.
This commit is contained in:
Solly Ross
2017-02-03 23:17:44 -05:00
parent d55e454582
commit 3ae0bb0968
13 changed files with 43 additions and 62 deletions

View File

@@ -12,14 +12,13 @@
* read binary data off of the receive queue.
*/
/* [module]
* import Util from "./util";
*/
import Util from "./util.js";
/*jslint browser: true, bitwise: true */
/*global Util*/
/* [module] export default */ function Websock() {
export default function Websock() {
"use strict";
this._websocket = null; // WebSocket object