Currently, I am in the process of creating a sample code using TypeScript and SystemJS for the browser.
In my app.ts file:
import {Person,add as test} from './testLib'
In the generated app.js file (by TypeScript compiler):
var testLib_1 = require('./testLib');
After that,
System.import('./app.js')
This results in a 404 Error because system.js is searching for /js/testLib/ folder instead of /js/testLib.js file.
Any insights on why this might be happening?
Here is a snippet from my tsconfig.js:
"target": "es5",
"module": "commonjs",