Update rollup

With rollup's preserveModules option and the sideEffects flag in
package.json, now we have the power of tree shaking.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent dcad6ff922
commit 4209ea7fe8
4 changed files with 19 additions and 24 deletions

View File

@@ -18,8 +18,9 @@
"rrweb"
],
"main": "lib/rrweb.js",
"module": "es/rrweb.js",
"module": "es/rrweb/src/index.js",
"unpkg": "dist/rrweb.js",
"sideEffects": false,
"typings": "typings/index.d.ts",
"files": [
"dist",
@@ -45,7 +46,7 @@
"jest-snapshot": "^23.6.0",
"mocha": "^5.2.0",
"puppeteer": "^1.11.0",
"rollup": "^0.66.6",
"rollup": "^2.3.3",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-postcss": "^1.6.2",