Skip to content

Commit

Permalink
fix: Expose HtmlRenderPlugin as named export
Browse files Browse the repository at this point in the history
  • Loading branch information
jahredhope committed Feb 10, 2021
1 parent 6fb3ca7 commit 9733bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ HtmlRenderPlugin will then pass the [Webpack Stats](https://webpack.js.org/api/s
**webpack.config.js**

```js
const HtmlRenderPlugin = require("html-render-webpack-plugin");
const { HtmlRenderPlugin } = require("html-render-webpack-plugin");

const htmlRenderPlugin = new HtmlRenderPlugin();
module.exports = [
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,5 @@ export default class HtmlRenderPlugin<Route extends BaseRoute = BaseRoute> {
apply: (compiler: Compiler) => void;
createDevRouter: () => Router;
}

export { HtmlRenderPlugin };

0 comments on commit 9733bbe

Please sign in to comment.