3
我想建立一个使用typescript和systemjs(浏览器)的示例代码。使用从SystemJs声明进口
app.ts文件:
import {Person,add as test} from './testLib'
app.js(由TS编译器生成):
var testLib_1 = require('./testLib');
然后
System.import('./app.js')
导致404错误因为system.js查找/js/testLib/文件夹而不是/js/t estLib.js文件。
任何想法为什么?
我tsconfig.js:
"target": "es5",
"module": "commonjs",