mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
importScripts('../../dist/system.src.js');
|
|
|
|
SystemJS.config({
|
|
map: {
|
|
'plugin-babel': '../../node_modules/systemjs-plugin-babel/plugin-babel.js',
|
|
'systemjs-babel-build': '../../node_modules/systemjs-plugin-babel/systemjs-babel-browser.js'
|
|
},
|
|
transpiler: 'plugin-babel'
|
|
});
|
|
|
|
System.import('es6-and-amd.js').then(function(m) {
|
|
postMessage({
|
|
amd: m.amd_module,
|
|
es6: m.es6_module
|
|
});
|
|
}, function(err) {
|
|
console.error(err);
|
|
});
|