Skip to content

Commit fceaf5c

Browse files
Update README examples to ESM
1 parent 04a9132 commit fceaf5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install event-hooks-webpack-plugin --save-dev
1515
```js
1616
import EventHooksPlugin from 'event-hooks-webpack-plugin';
1717

18-
module.exports = {
18+
export default {
1919
// ...
2020
plugins: [
2121
new EventHooksPlugin({
@@ -39,7 +39,7 @@ By default, the plugin uses `tap`.
3939
```js
4040
import EventHooksPlugin, { tapPromise, tapAsync } from 'event-hooks-webpack-plugin';
4141

42-
module.exports = {
42+
export default {
4343
// ...
4444
plugins: [
4545
new EventHooksPlugin({

0 commit comments

Comments
 (0)