This is the typescript
block providing TypeScript support for webpack. Uses
awesome-typescript-loader
.
const { createConfig } = require('@webpack-blocks/webpack')
const typescript = require('@webpack-blocks/typescript')
module.exports = createConfig([
typescript(/* options, optional */)
])
Use match()
to explicitly specify the files to load using the TypeScript loader.
Uses the default tsconfig.json in the root directory (See here). You can pass awesome-typescript-loader options to the block.
Check out the
Released under the terms of the MIT license.