mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 18:02:46 +08:00
![David Taylor](/assets/img/avatar_default.png)
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.
31 lines
870 B
JSON
31 lines
870 B
JSON
{
|
|
"name": "theme-transpiler",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Uses esbuild to create a 'theme transpiler' bundle for loading into mini-racer",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"keywords": [],
|
|
"dependencies": {
|
|
"@babel/standalone": "^7.24.5",
|
|
"@zxing/text-encoding": "^0.9.0",
|
|
"babel-plugin-ember-template-compilation": "^2.2.4",
|
|
"content-tag": "^2.0.1",
|
|
"discourse-common": "1.0.0",
|
|
"discourse-widget-hbs": "1.0.0",
|
|
"ember-cli-htmlbars": "^6.3.0",
|
|
"ember-source": "~5.5.0",
|
|
"ember-this-fallback": "^0.4.0",
|
|
"handlebars": "^4.7.8",
|
|
"path-browserify": "^1.0.1",
|
|
"polyfill-crypto.getrandomvalues": "^1.0.0",
|
|
"terser": "^5.31.0",
|
|
"decorator-transforms": "^2.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">= 18",
|
|
"npm": "please-use-yarn",
|
|
"yarn": ">= 1.21.1"
|
|
}
|
|
}
|