@dumlj/dts-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.5.26 • Public • Published

License: MIT  Github Repo  NPM Version  See Docs  codecov 

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

@dumlj/dts-webpack-plugin
├─┬ @dumlj/seed-webpack-plugin
│ ├─┬─ @dumlj/feature-updater
│ │ ├─── @dumlj/shell-lib
│ │ ├─── @dumlj/util-lib
│ │ └─── @dumlj/mock-libPRIVATE
│ └─── @dumlj/mock-libPRIVATE
└── @dumlj/shell-lib

Readme

Keywords

none

Package Sidebar

Install

npm i @dumlj/dts-webpack-plugin

Weekly Downloads

323

Version

2.5.26

License

MIT

Unpacked Size

92.8 kB

Total Files

46

Last publish

Collaborators

  • cjfff
  • sexymee
  • davidjones