Bones/node_modules/systemjs/test/tests/worker-babel.js

15 lines
306 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
importScripts('../../dist/system.src.js');
System.paths['babel'] = '../../node_modules/babel-core/browser.js';
System.transpiler = 'babel';
System.import('es6-and-amd.js').then(function(m) {
postMessage({
amd: m.amd_module,
es6: m.es6_module
});
}, function(err) {
console.error(err);
});