Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: @babel/plugin-proposal-decorators -> decorator-transforms #25290

Merged
merged 1 commit into from
May 8, 2024

Commits on May 8, 2024

  1. DEV: @babel/plugin-proposal-decorators -> decorator-transforms

    decorator-transforms (https://github.com/ef4/decorator-transforms) is a modern replacement for babel's plugin-proposal-decorators. It provides a decorator implementation using modern browser features, without needing to enable babel's full suite of class feature transformations. This improves the developer experience and performance.
    
    In local testing with Google's 'tachometer' tool, this reduces Discourse's 'init-to-render' time by around 3-4% (230ms -> 222ms).
    
    It reduces our initial gzip'd JS payloads by 3.2% (2.43MB -> 2.35MB), or 7.5% (14.5MB -> 13.4MB) uncompressed.
    davidtaylorhq committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5b2301d View commit details
    Browse the repository at this point in the history