light-ts-loader

2016 Dec. 7

@laco0416

What's light-ts-loader?

webpack loader for TypeScript source

Concepts

  • Light weight package 
  • Lightning fast loading

light-ts-loader

Other TypeScript Loaders

Former TypeScript Bundling

a.ts

a.js

bundled.js

b.ts

b.js

c.ts

c.js

Type-Checking

Transpiling

Module Resolution

Type-checking

  • Type-checking is heavy
    • Need to read all modules
  • You can do it at other task
    • `tsc --noEmit`

Loader's responsibility
= Loading modules

light-ts-loader

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

2.0 Roadmap

  • More configurable
    • i.e. tsconfig path
  • More tests
  • Benchmark
    • v.s. other loaders

Thanks

Made with Slides.com