Commit Graph

23 Commits

Author SHA1 Message Date
Yanzhen Yu
bd89778315 do not bundle es module multiple times 2026-04-01 12:00:00 +08:00
Justin Halsall
ae8ddcaa3a Fixes dist/plugins/console-record.min.js needed for tests #601 (#603) 2026-04-01 12:00:00 +08:00
yz-yu
c550a4b088 plugin API (#598)
* temp: plugin API

* fix a bug in the replay handler and rename some type names.

* update integration test

* improve plugin types and handle legacy log data

* use different naming in record and replay bundles

* delete unreferenced types

Co-authored-by: Lucky Feng <294889365@qq.com>
2026-04-01 12:00:00 +08:00
Yanzhen Yu
e9d915b3d6 rename node_modules in es bundle to ext 2026-04-01 12:00:00 +08:00
101arrowz
30026bb8f5 Update to fflate (#448)
* Update to fflate

* Update docs, bundler config
2026-04-01 12:00:00 +08:00
Yanzhen Yu
191908aa1d 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
2026-04-01 12:00:00 +08:00
Yanzhen Yu
2a323da123 close #205
1. upgrade rollup postcss plugin
2. fix postcss plugins for bundles
2026-04-01 12:00:00 +08:00
yz-yu
1efc9ad30b Bundles (#199)
* provide more bundle outputs

* update commonJS and es module entry to boot file
2026-04-01 12:00:00 +08:00
Yanzhen Yu
4209ea7fe8 Update rollup
With rollup's preserveModules option and the sideEffects flag in
package.json, now we have the power of tree shaking.
2026-04-01 12:00:00 +08:00
yz-yu
dcad6ff922 Packer (#172)
* introduce pako and add general packer interface

* add tests for packer

* use function API instead of class API for better tree shaking support

* refcatoring the rollup bundle config
2026-04-01 12:00:00 +08:00
Yanzhen Yu
4d813fff39 close #138 change source map into a single file 2026-04-01 12:00:00 +08:00
Yanzhen Yu
3e2bf7fdc5 add rollup commonjs plugin 2026-04-01 12:00:00 +08:00
Yanzhen Yu
564b54bb35 rename record only bundle iife name 2026-04-01 12:00:00 +08:00
Yanzhen Yu
3e1ef6825e add sourcemap for terser bundles 2026-04-01 12:00:00 +08:00
Yanzhen Yu
b065b22f09 refactor the repl tool to support multipage apps and better dev 2026-04-01 12:00:00 +08:00
Yanzhen Yu
72ed0ebc9f do not auto inject stylesheet 2026-04-01 12:00:00 +08:00
Yanzhen Yu
b6d8a7dc95 extract css by rollup plugin 2026-04-01 12:00:00 +08:00
Yanzhen Yu
c97590edc7 update bundle config 2026-04-01 12:00:00 +08:00
Yanzhen Yu
aa3e2f02ed rewrite mutation observer handler with lazy child list calculation 2026-04-01 12:00:00 +08:00
Yanzhen Yu
487f1d0c9a add meta event and fix childList observer, also update related replayer 2026-04-01 12:00:00 +08:00
Yanzhen Yu
eb56afa59f export more props of replayer to the UI 2026-04-01 12:00:00 +08:00
Yanzhen Yu
a90198ee46 update rollup config so we can benefit from tree shaking 2026-04-01 12:00:00 +08:00
Yanzhen Yu
789cae98a1 update bundle configs 2026-04-01 12:00:00 +08:00