diff options
Diffstat (limited to 'thirdparty/systemjs/test/tests/worker-babel.js')
-rw-r--r-- | thirdparty/systemjs/test/tests/worker-babel.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/thirdparty/systemjs/test/tests/worker-babel.js b/thirdparty/systemjs/test/tests/worker-babel.js new file mode 100644 index 000000000..74c741309 --- /dev/null +++ b/thirdparty/systemjs/test/tests/worker-babel.js @@ -0,0 +1,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); +}); |