From 4faaf43176e33239567bcb37fbcbb5ccb9185027 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Fri, 3 Feb 2017 23:59:44 -0500 Subject: [PATCH] Use ES6 modules natively via Polyfill This commit introduces the "Browser ES Module Loader" polyfill to support developing with native ES6 modules, without any compilation step (files are passed through Babel in the browser). This should not be used in production -- a pre-compiled version passed through babel ahead of time (as produced by the `npm install` hook or `utils/use_require.js`) should be used instead. --- package.json | 1 + vnc.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 93f6a894..61c3ecc6 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", "babelify": "^7.3.0", + "browser-es-module-loader": "^0.4.1", "browserify": "^13.1.0", "casperjs": "^1.1.3", "chai": "^3.5.0", diff --git a/vnc.html b/vnc.html index a212a26e..64592f51 100644 --- a/vnc.html +++ b/vnc.html @@ -322,9 +322,9 @@ - - - + + +