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.
This commit is contained in:
parent
fba220c6fc
commit
4faaf43176
|
@ -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",
|
||||
|
|
6
vnc.html
6
vnc.html
|
@ -322,9 +322,9 @@
|
|||
</audio>
|
||||
|
||||
<!-- begin scripts -->
|
||||
<script src="core/util.js"></script>
|
||||
<script src="app/webutil.js"></script>
|
||||
<script src="app/ui.js"></script>
|
||||
<script src="node_modules/browser-es-module-loader/dist/babel-browser-build.js"></script>
|
||||
<script src="node_modules/browser-es-module-loader/dist/browser-es-module-loader.js"></script>
|
||||
<script type="module" src="app/ui.js"></script>
|
||||
<!-- end scripts -->
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue