Skip to content

Commit

Permalink
add new usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ito committed Jan 8, 2022
1 parent f228454 commit fa56ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default {
};
```

It takes a string and will rename files and mentions of `node_module` to the provided string. By default it's `external`.
It takes a string and will rename files and mentions of `node_module` to the provided string. By default it's `external`. Since v1.3.0, you can also pass in a function that takes a `string` and returns a `string`.

It has optional second parameter `sourceMap` which defaults to `true` and can disable source map generation:
It has an optional second parameter `sourceMap` which defaults to `true` and can disable source map generation:

```js
plugins: [renameNodeModules("ext", false)]
Expand Down

0 comments on commit fa56ed6

Please sign in to comment.