aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/systemjs/test/tests/worker-babel.js
blob: 74c741309394bebbbe1d580b323cc526a14d551c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
});