Currently, I'm in the process of developing a web application using angular2 and typescript. I attempted to incorporate index.ts
so that in my code, I could simply include
import {LayoutComponent} from '../layout';
However, during transpilation, the JavaScript engine does not search for index.js
but instead looks for ./layout
, causing it to fail.
Is there a configuration setting for the typescript transpiler that needs adjustment, or perhaps a systemjs configuration that needs tweaking? Would using another loader like webpack be a viable solution?