mirror of
https://github.com/tomasvarg/systemjs-typescript-minimal.git
synced 2026-03-01 00:08:53 +00:00
30 lines
488 B
JavaScript
30 lines
488 B
JavaScript
/* global SystemJS */
|
|
|
|
SystemJS.config({
|
|
transpiler: 'ts',
|
|
typescriptOptions: {
|
|
tsconfig: true
|
|
},
|
|
packages: {
|
|
ts: {
|
|
main: 'lib/plugin.js'
|
|
},
|
|
typescript: {
|
|
main: 'lib/typescript.js',
|
|
meta: {
|
|
'lib/typescript.js': {
|
|
'exports': 'ts'
|
|
}
|
|
}
|
|
},
|
|
src: {
|
|
defaultExtension: 'ts',
|
|
format: 'esm'
|
|
}
|
|
},
|
|
map: {
|
|
ts: 'node_modules/plugin-typescript',
|
|
typescript: 'node_modules/typescript'
|
|
},
|
|
});
|