Make jsFactory shorter -> bundle size -10%
This commit is contained in:
parent
56b00f715a
commit
f492d26379
2 changed files with 10 additions and 4 deletions
|
|
@ -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/**/*"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue