Skip to content

[Bug]: rrweb record minification size #1742

@eoghanmurray

Description

@eoghanmurray

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

What package is this bug report for?

rrweb

Version

@2.0.0-alpha.18

Expected Behavior

There's a large jump in record.js size between alpha.15 and alpha.18:

@2.0.0-alpha.15 -> 81532 bytes
@2.0.0-alpha.17 -> 205883 bytes
@2.0.0-alpha.18 -> 207283 bytes

as per this package:
https://www.jsdelivr.com/package/npm/@rrweb/record

I believe this may correspond to the addition of the postcss parser in #1458
Which now is being included in the record output, even though it's only needed in replay.

Actual Behavior

postcss packaged and included in record.js

Steps to Reproduce

Download alpha.15 and alpha.18 and compare the files

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.0bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions