2.5.26 • Published 21 days ago

@dumlj/dts-webpack-plugin v2.5.26

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

License: MIT  Github Repo  NPM Version  See Docs  codecov  DeepSource 

Dts Webpack Plugin

Build dts files with webpack

BACKGROUND

After Webpack is built, it is no longer the original resource. Therefore, if you want to export .d.ts files, you need to execute tsc to compile the .d.ts file.

FEATURE

  • It can directly output d.ts files.
  • Support alias of tsconfig.json by default.

INSTALL

# use npm
$ npm install --dev @dumlj/dts-webpack-plugin
# use yarn
$ yarn add --dev @dumlj/dts-webpack-plugin
# use pnpm
$ pnpm add @dumlj/dts-webpack-plugin -D

USAGE

import { OneWebpackDTSPlugin } from '@series-one/webpack-dts-plugin'

export default {
  plugins: [
    new OneWebpackDTSPlugin({
      rootDir: path.join(__dirname, './src'),
    }),
  ],
}

LIVE DEMO

After execution, please check the console or ./build directory.

INTERNAL DEPENDENCIES