mirror of
https://git.proxmox.com/git/mirror_novnc
synced 2025-06-06 03:27:16 +00:00

This commit makes the ES6 module loader polyfill use Web Workers, so that Babel doesn't block the browser from animating. It also uses localStorage to cache the compiled results, only recompiling on source changes, so it makes loading faster while developing noVNC. This includes a vendored copy of the ES6 module loader, modified as described above.
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
import nodeResolve from 'rollup-plugin-node-resolve';
|
|
|
|
export default {
|
|
entry: 'src/browser-es-module-loader.js',
|
|
dest: 'dist/browser-es-module-loader.js',
|
|
format: 'umd',
|
|
moduleName: 'BrowserESModuleLoader',
|
|
|
|
plugins: [
|
|
nodeResolve(),
|
|
],
|
|
|
|
// skip rollup warnings (specifically the eval warning)
|
|
onwarn: function() {}
|
|
};
|