diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-26 13:49:28 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-26 13:49:28 +0200 |
commit | f492d26379fb47338bc03d08f0d131fbc7863064 (patch) | |
tree | 1c2d1519ccad77ec4c52d1bde24b2e48e73a1baa /tsconfig.json | |
parent | 56b00f715aef19c04e84dce9d1507da61f08a310 (diff) | |
download | Vencord-f492d26379fb47338bc03d08f0d131fbc7863064.tar.gz Vencord-f492d26379fb47338bc03d08f0d131fbc7863064.tar.bz2 Vencord-f492d26379fb47338bc03d08f0d131fbc7863064.zip |
Make jsFactory shorter -> bundle size -10%
Diffstat (limited to 'tsconfig.json')
-rw-r--r-- | tsconfig.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tsconfig.json b/tsconfig.json index 5d87ced..5269748 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,8 +15,9 @@ "noImplicitAny": false, "target": "ESNEXT", // https://esbuild.github.io/api/#jsx-factory - "jsxFactory": "Vencord.Webpack.Common.React.createElement", - "jsxFragmentFactory": "Vencord.Webpack.Common.React.Fragment", + // these short window aliases make the bundle ~10% smaller + "jsxFactory": "_Ve$", + "jsxFragmentFactory": "_VF$", "jsx": "react" }, "include": ["src/**/*"] |