diff --git a/README.md b/README.md index ff3ae5d33..ed11335a0 100644 --- a/README.md +++ b/README.md @@ -436,11 +436,9 @@ $> npm run types ### Browserify integration -protobuf.js integrates into any browserify build-process. There are a few possible tweaks: +By default, protobuf.js integrates into your browserify build-process without requiring any optional modules. Hence: -* 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. -* If you do not need int64 support, you can explicitly exclude the `long` module. It will be included otherwise. -* If your application does not rely on the following modules and package size is a concern, you can also exclude `process` , `_process` and `fs`. +* If you need int64 support, explicitly require the `long` module somewhere in your project. It will be excluded otherwise. * If you have any special requirements, there is [the bundler](https://github.com/dcodeIO/protobuf.js/blob/master/scripts/bundle.js) as a reference. Performance diff --git a/dist/protobuf.js b/dist/protobuf.js index 5fc1b3262..8c2e027e1 100644 --- a/dist/protobuf.js +++ b/dist/protobuf.js @@ -1,6 +1,6 @@ /*! * protobuf.js v6.3.0 (c) 2016 Daniel Wirtz - * Compiled Sun, 18 Dec 2016 17:32:33 UTC + * Compiled Sun, 18 Dec 2016 17:54:03 UTC * Licensed under the Apache License, Version 2.0 * see: https://github.com/dcodeIO/protobuf.js for details */ diff --git a/dist/protobuf.min.js b/dist/protobuf.min.js index 133133830..65db9ef4e 100644 --- a/dist/protobuf.min.js +++ b/dist/protobuf.min.js @@ -1,6 +1,6 @@ /*! * protobuf.js v6.3.0 (c) 2016 Daniel Wirtz - * Compiled Sun, 18 Dec 2016 17:32:33 UTC + * Compiled Sun, 18 Dec 2016 17:54:03 UTC * Licensed under the Apache License, Version 2.0 * see: https://github.com/dcodeIO/protobuf.js for details */ diff --git a/dist/protobuf.min.js.gz b/dist/protobuf.min.js.gz index c272933e2..5e036c9fa 100644 Binary files a/dist/protobuf.min.js.gz and b/dist/protobuf.min.js.gz differ diff --git a/dist/runtime/protobuf.js b/dist/runtime/protobuf.js index 8a700933b..c9221b422 100644 --- a/dist/runtime/protobuf.js +++ b/dist/runtime/protobuf.js @@ -1,6 +1,6 @@ /*! * protobuf.js v6.3.0 (c) 2016 Daniel Wirtz - * Compiled Sun, 18 Dec 2016 17:32:33 UTC + * Compiled Sun, 18 Dec 2016 17:54:03 UTC * Licensed under the Apache License, Version 2.0 * see: https://github.com/dcodeIO/protobuf.js for details */ diff --git a/dist/runtime/protobuf.min.js b/dist/runtime/protobuf.min.js index 442213805..d5512ddcb 100644 --- a/dist/runtime/protobuf.min.js +++ b/dist/runtime/protobuf.min.js @@ -1,6 +1,6 @@ /*! * protobuf.js v6.3.0 (c) 2016 Daniel Wirtz - * Compiled Sun, 18 Dec 2016 17:32:33 UTC + * Compiled Sun, 18 Dec 2016 17:54:03 UTC * Licensed under the Apache License, Version 2.0 * see: https://github.com/dcodeIO/protobuf.js for details */ diff --git a/dist/runtime/protobuf.min.js.gz b/dist/runtime/protobuf.min.js.gz index 8a8a07e30..7c4fa07ce 100644 Binary files a/dist/runtime/protobuf.min.js.gz and b/dist/runtime/protobuf.min.js.gz differ diff --git a/scripts/bundle.js b/scripts/bundle.js index bd893ee64..98b155c02 100644 --- a/scripts/bundle.js +++ b/scripts/bundle.js @@ -40,8 +40,7 @@ function bundle(compress, runtime) { .external("long") .external("buffer") .exclude("process") - .exclude("_process") // what is it... - .exclude("fs") + .exclude("_process") .plugin(require('bundle-collapser/plugin')) .bundle() .pipe(source(compress ? 'protobuf.min.js' : 'protobuf.js'))