You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -342,6 +351,15 @@ Building the TypeScript definition to `types/`:
342
351
$> npm run types
343
352
```
344
353
354
+
### Browserify integration
355
+
356
+
protobuf.js integrates seamlessly into your browserify build-process. There are a few optional tweaks, though:
357
+
358
+
* If performance is a concern or IE8 support is required, you should make sure to exclude the browserified `buffer` module and let protobuf.js do its thing with Uint8Array/Array instead.
359
+
* If you do not need int64 support, you can exclude the `long` module.
360
+
* If your application does not rely on the following modules and/or package size is a concern, you can also exclude `process` , `_process` and `fs`.
361
+
* If you have any special requirements, there is [the bundler](https://github.com/dcodeIO/protobuf.js/blob/master/scripts/bundle.js) as a reference.
362
+
345
363
Performance
346
364
-----------
347
365
The package includes a [benchmark](https://github.com/dcodeIO/protobuf.js/tree/master/bench) that tries to compare performance to native JSON as far as this is possible. On an i7-2600K running node 6.9.1 it yields:
0 commit comments