Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Add note about monorepo usage (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielHill authored and lukastaegert committed Apr 2, 2019
1 parent d93d838 commit a2a0cb1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -66,6 +66,16 @@ export default {
};
```

### Usage in monorepo

In case you are using a monorepo, you may want to use a regular expression for `include` as the string 'node_modules' will not match if your `node_modules` is not in your current working directory (i.e. '../node_modules'). Try this:

```
commonjs({
include: /node_modules/
})
```

### Custom named exports

This plugin will attempt to create named exports, where appropriate, so you can do this...
Expand Down

0 comments on commit a2a0cb1

Please sign in to comment.