Skip to content

Commit cb29da5

Browse files
committed
docs(readme): provide example webpack.config as an ESM module, not CommonJS
1 parent 86b75d0 commit cb29da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ Module:
5959
Include something like the following in `webpack.config.js`:
6060

6161
```js
62-
const ResolveTypeScriptPlugin = require("resolve-typescript-plugin");
62+
import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
6363

64-
module.exports = {
64+
export default {
6565
module: {
6666
rules: [
6767
{

0 commit comments

Comments
 (0)