To moje tsconfig.jsw stanie dynamicznie transpile ES moduł System.config ({transpile: 'transpile-module'})
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"target": "es5",
"module": "system",
"noImplicitAny": false,
"outDir": "built",
"rootDir": ".",
"sourceMap": false
},
"exclude": [
"node_modules"
]
}
jestem transpiling moja „hello-kątowej. ts 'into' hello-angular.js 'przy użyciu polecenia tsc
. A import o System.import ('built/hello-angular')
Kiedy im serwer począwszy mam err w przeglądarce Unable to dynamically transpile ES module A loader plugin needs to be configured via
SystemJS.config ({transpiler: 'transpiler-module'}) ``
ja nie rozumiem, dlaczego próbuje systemjs do transpile ES5 plik .. I został ustawiony system.config ({transpiler: false}), ale zrobił to pomoże ..