Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 6fd04f7

Browse files
edanielsnbbeeken
authored andcommitted
fix(rollup): fixup dist and bundle in Buffer
1 parent a5e667d commit 6fd04f7

File tree

11 files changed

+9963
-4048
lines changed

11 files changed

+9963
-4048
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ jspm_packages
3636
# Optional REPL history
3737
.node_repl_history
3838

39-
dist
39+
dist/*
40+
!/dist/mongodb-extjson.bundle.js

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,13 @@ console.log(EJSON.parse(text));
8383
[travis_url]: https://travis-ci.org/mongodb-js/mongodb-extjson
8484
[npm_img]: https://img.shields.io/npm/v/mongodb-extjson.svg
8585
[npm_url]: https://www.npmjs.org/package/mongodb-extjson
86+
87+
## FAQ
88+
89+
#### What are the various files in dist?
90+
91+
* `mongodb-extjson.bundle.js` is a bundled up version of the library that is suitable for inclusion in an HTML page via a `<script>` tag.
92+
* `mongodb-extjson.esm.js` is a rolled up version of the library that is suitable for interoperation with bundlers that work better with ES modules.
93+
* `mongodb-extjson.browser.esm.js` is similar to `mongodb-extjson.esm.js` but is ultimately intened for consumers producing browser bundles. It also pulls in any browser specific dependencies/code that may be needed.
94+
* `mongodb-extjson.browser.umd.js` is similar to the source code of this library but is ultimately intened for consumers producing browser bundlers expecting a UMD format. It also pulls in any browser specific dependencies/code that may be needed.
95+

0 commit comments

Comments
 (0)