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
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -481,7 +481,7 @@ If you support IE11, import `core-js` in your application entrypoints, as this l
481
481
482
482
NodeJS v10 is required, but NodeJS v12 or later is recommended because it includes the V8 feature of [Improving DataView performance in V8](https://v8.dev/blog/dataview).
483
483
484
-
NodeJS before v10 will work by importing `@msgpack/msgpack/dist.es5/msgpack`.
484
+
NodeJS before v10 will work by importing `@msgpack/msgpack/dist.es5+umd/msgpack`.
485
485
486
486
### TypeScript
487
487
@@ -522,9 +522,10 @@ Note that `Buffer.from()` for `JSON.stringify()` is necessary to emulate I/O whe
522
522
The NPM package distributed in npmjs.com includes both ES2015+ and ES5 files:
523
523
524
524
*`dist/` is compiled into ES2015+
525
-
*`dist.es5/` is compiled into ES5 and bundled to singile file
526
-
*`dist.es5/msgpack.min.js` - the default, minified file (UMD)
527
-
*`dist.es5/msgpack.js` - an optional, non-minified file (UMD)
525
+
*`dist.es5+umd/` is compiled into ES5 and bundled to singile file
526
+
*`dist.es5+umd/msgpack.min.js` - the default, minified file (UMD)
527
+
*`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
529
529
530
If you use NodeJS and/or webpack, their module resolvers use the suitable one automatically.
0 commit comments