Skip to content

Commit f28e981

Browse files
committed
doc: explain es5+esm
1 parent fb199a8 commit f28e981

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ Note that `Buffer.from()` for `JSON.stringify()` is necessary to emulate I/O whe
521521

522522
The NPM package distributed in npmjs.com includes both ES2015+ and ES5 files:
523523

524-
* `dist/` is compiled into ES2015+
525-
* `dist.es5+umd/` is compiled into ES5 and bundled to singile file
524+
* `dist/` is compiled into ES2015+, provided for NodeJS v10 or later
525+
* `dist.es5+umd/` is compiled into ES5 with UMD-style single file
526526
* `dist.es5+umd/msgpack.min.js` - the default, minified file (UMD)
527527
* `dist.es5+umd/msgpack.js` - an optional, non-minified file (UMD)
528-
* `dist.es5+esm/` is compiled into ES5 and placed as ES modules
528+
* `dist.es5+esm/` is compiled into ES5 and placed as ES modules, provided for webpack-like bundlers, not NodeJS
529529

530530
If you use NodeJS and/or webpack, their module resolvers use the suitable one automatically.
531531

0 commit comments

Comments
 (0)