1.1.2 • Published 8 years ago
light-ts-loader v1.1.2
light-ts-loader
:zap: Light weight & Lightning fast TypeScript Loader :zap:
Concepts
- No Dependencies => Light weight package
- No Type-checking => Lightning fast bundling
- No Magic => Easy to contribute :)
light-ts-loader
does NOT run type-checking at bundling.
That can reduce bundling time much, but usually you must execute type-cheking as other task.
tsc --noEmit
command is recommended solution for that.
Installation
$ npm install -D light-ts-loader
How to use
module: {
rules: [
{ test: /\.ts$/, loader: "light-ts-loader" },
],
},
Configuration
plugins: [
new webpack.LoaderOptionsPlugin({
// use `path.resolve("tsconfig.json")` by default.
tsConfigPath: "path/to/your/tsconfig.json",
})
],
Compatibilities (Tested Only)
- TypeScript 2.0
- webpack 2.1.0
License
MIT