Skip to content

Commit

Permalink
docs: update link to DeclarationBundlerPlugin in Declarations (.d.ts)…
Browse files Browse the repository at this point in the history
… section in the README (#1549)

The existing link points to a plugin that is many years old and does not work with modern versions of webpack. This updated fork works with webpack 5.
  • Loading branch information
Alexander Lange Van Camp authored Jan 1, 2023
1 parent 31c3a5e commit 08a5947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ To output declaration files (.d.ts), you can set "declaration": true in your tsc

If you use ts-loader with "transpileOnly": true along with [fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin), you will need to configure fork-ts-checker-webpack-plugin to output definition files, you can learn more on the plugin's documentation page: https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#typescript-options

To output a built .d.ts file, you can use the [DeclarationBundlerPlugin](https://www.npmjs.com/package/declaration-bundler-webpack-plugin) in your webpack config.
To output a built .d.ts file, you can use the [DeclarationBundlerPlugin](https://www.npmjs.com/package/types-webpack-bundler) in your webpack config.

### Failing the build on TypeScript compilation error

Expand Down

0 comments on commit 08a5947

Please sign in to comment.