continue #199: redesign the bundled file structure

According to @eoghanmurray's suggestion, we can support three
main scenarios:
1. record only
2. replay only
3. all in one

Since we have implemented the packer feature, which has a big
influence in bundle size, we provide another three bundles:
1. record and pack
2. replay and unpack
3. all in one with pack and unpack
This commit is contained in:
Yanzhen Yu
2020-06-15 18:10:39 +08:00
parent 4cf196718c
commit a3b1ab6d9e
6 changed files with 40 additions and 24 deletions

View File

@@ -17,8 +17,8 @@
"keywords": [
"rrweb"
],
"main": "lib/rrweb-boost.js",
"module": "es/rrweb/src/boost.js",
"main": "lib/rrweb-all.js",
"module": "es/rrweb/entries/all.js",
"unpkg": "dist/rrweb.js",
"sideEffects": false,
"typings": "typings/index.d.ts",