包详细信息

@webpack-blocks/typescript

andywer985MIT2.0.1

Webpack block for Typescript.

webpack, webpack-blocks

自述文件

webpack-blocks - TypeScript

Gitter chat NPM Version

This is the typescript block providing TypeScript support for webpack. Uses awesome-typescript-loader.

Usage

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.

Options

Uses the default tsconfig.json in the root directory (See here). You can pass awesome-typescript-loader options to the block.

webpack-blocks

Check out the

👉 Main documentation

Released under the terms of the MIT license.

更新日志

@webpack-blocks/typescript - Changelog

2.0.0-alpha

  • Support for webpack 4 (#261)

1.0.0-beta.2

  • Update dependency versions

1.0.0-beta

  • Make compatible with match()

1.0.0-alpha

  • Updated for new core API (#125)
  • Requires node 6+

0.4.1

  • Allow passing custom loader options (see #141)

0.4.0

  • No changes, just keeping the version numbers in sync

0.1.0

Initial release.