2016 Dec. 22
@laco0416
webpack loader for TypeScript source
light-ts-loader
a.ts
a.js
bundled.js
b.ts
b.js
c.ts
c.js
Type-Checking
Transpiling
Module Resolution
Loader's responsibility
= Loading modules
a.ts
a.js
bundled.js
b.ts
b.js
c.ts
c.js
Transpiling
Module Resolution
module: {
rules: [
{ test: /\.ts$/, loader: "light-ts-loader" },
],
},
$ npm i -D light-ts-loader