Это мои tsconfig.jsНе удалось динамически transpile ES модуль System.config ({transpile: 'transpile-модуль'})
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"target": "es5",
"module": "system",
"noImplicitAny": false,
"outDir": "built",
"rootDir": ".",
"sourceMap": false
},
"exclude": [
"node_modules"
]
}
Я transpiling мой «привет-угловой. ts 'в' hello-angular.js ', используя команду tsc
. А импорт по System.import ('built/hello-angular')
При запуске сервера им я получил заблуждается в браузере Unable to dynamically transpile ES module A loader plugin needs to be configured via
SystemJS.config ({transpiler: 'transpiler-модуль'}) ``
Я не понимаю, почему systemjs пытается в transpile ES5 файл .. Я был установлен system.config ({transpiler ложь}), но это не помогло ..