1.0.2 • Published 4 years ago

ts-loader-declaration-export-plugin v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ts-loader-declaration-export-plugin

What is this?

This is a small webpack plugin to export only declaration files you choose. It's connected with ts-loader. So you install it first and then add "declaration": true in tsconfig.json.

How do I use it?

Add plugin

yarn add -D ts-loader-declaration-export-plugin
npm install -D ts-loader-declaration-export-plugin

Add plugin to webpack

// webpack.config.js
const DeclarationExportPlugin = require('ts-loader-declaration-export-plugin');

module.exports = {
  ...
  plugins: [
    new DeclarationExportPlugin({
      modulePath: 'src/index.d.ts',
      output: 'index.d.ts',
    }),
  ],
  ...
}

Enjoy ;)

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago