discourse/patches
David Taylor 565c753dd2
DEV: `@babel/plugin-proposal-decorators` -> `decorator-transforms` (#27260)
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.

This was previously reverted in 97847f6. This version includes a babel transformation which works around the bug in Safari <= 15.

For Cloudflare compatibility issues, check https://meta.discourse.org/t/311390
2024-06-10 15:51:48 +01:00
..
babel-plugin-debug-macros+0.3.4.patch
content-tag+2.0.1.patch
decorator-transforms+2.0.0.patch DEV: `@babel/plugin-proposal-decorators` -> `decorator-transforms` (#27260) 2024-06-10 15:51:48 +01:00
ember-this-fallback+0.4.0+001+deprecation-name.patch
ember-this-fallback+0.4.0+002+themes.patch
ember-this-fallback+0.4.0+003+exclude-strict-mode.patch
virtual-dom+2.1.1.patch