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
$ npm install --dev @dumlj/dts-webpack-plugin
$ yarn add --dev @dumlj/dts-webpack-plugin
$ 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