Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit db73743

Browse files
baerrachchrisbreiding
authored andcommitted
docs(onBundle): clarify onBundle (#30)
1 parent faf9873 commit db73743

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,15 @@ browserify({
133133

134134
### onBundle
135135

136-
A function that is called with the [browserify bundle](https://github.com/browserify/browserify#browserifyfiles--opts). This allows you to specify external files and plugins. See the [browserify docs](https://github.com/browserify/browserify#baddfile-opts) for methods available.
136+
A function that is called with the [browserify instance](https://github.com/browserify/browserify#browserifyfiles--opts). This allows you to specify external files and plugins. See the [browserify docs](https://github.com/browserify/browserify#baddfile-opts) for methods available.
137137

138138
```javascript
139139
// example
140140
browserify({
141141
onBundle (bundle) {
142142
bundle.external('react')
143143
bundle.plugin('some-plugin')
144+
bundle.ignore('pg-native')
144145
}
145146
})
146147
```

0 commit comments

Comments
 (0)