mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-18 14:53:14 +00:00
32 lines
583 B
JavaScript
32 lines
583 B
JavaScript
importScripts('../../dist/system.src.js');
|
|
|
|
SystemJS.config({
|
|
packages: {
|
|
"ts": {
|
|
"main": "plugin.js"
|
|
},
|
|
"typescript": {
|
|
"main": "lib/typescript.js",
|
|
"meta": {
|
|
"lib/typescript.js": {
|
|
"exports": "ts"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
map: {
|
|
"ts": "../../node_modules/plugin-typescript/lib",
|
|
"typescript": "../../node_modules/typescript"
|
|
},
|
|
transpiler: 'ts'
|
|
});
|
|
|
|
System.import('es6-and-amd.js').then(function(m) {
|
|
postMessage({
|
|
amd: m.amd_module,
|
|
es6: m.es6_module
|
|
});
|
|
}, function(err) {
|
|
console.error(err);
|
|
});
|