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

Add note about monorepo usage #372

Merged
merged 1 commit into from Apr 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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