From 98068fa5b755d9f37b69f9d4dfe63b7a5777f600 Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Sun, 10 Jun 2018 09:43:12 -0400 Subject: [PATCH] feat(rollup): switch from webpack to rollup for bundling --- .gitignore | 1 - README.md | 4 +- alternate_parsers/faster_bson.js | 2 +- bower.json | 2 +- browser_build/bson.js | 16417 ----------------------------- browser_build/package.json | 8 - package.json | 22 +- rollup.config.js | 29 + webpack.dist.config.js | 22 - 9 files changed, 44 insertions(+), 16463 deletions(-) delete mode 100644 browser_build/bson.js delete mode 100644 browser_build/package.json create mode 100644 rollup.config.js delete mode 100644 webpack.dist.config.js diff --git a/.gitignore b/.gitignore index cef9cc3f..bddd9fe9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ node_modules/ output build -browser_build .bin npm-debug.log builderror.log diff --git a/README.md b/README.md index ee625b41..d5c238bf 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ BSON is short for Bin­ary JSON and is the bin­ary-en­coded seri­al­iz­a­tion of JSON-like doc­u­ments. You can learn more about it in [the specification](http://bsonspec.org). -This browser version of the BSON parser is compiled using [webpack](https://webpack.js.org/) and the current version is pre-compiled in the `browser_build` directory. +This browser version of the BSON parser is compiled using [rollup](https://rollupjs.org/) and the current version is pre-compiled in the `dist` directory. This is the default BSON parser, however, there is a C++ Node.js addon version as well that does not support the browser. It can be found at [mongod-js/bson-ext](https://github.com/mongodb-js/bson-ext). @@ -18,7 +18,7 @@ npm run build A simple example of how to use BSON in the browser: ```html - +