InvokeAI/invokeai/frontend/web
psychedelicious 4308d593c3 fix(ui): improve IDE TS performance by not resolving JSON
The TS Language Server slows down immensely with our translation JSON, which is used to provide kinda-type-safe translation keys. I say "kinda", because you don't get autocomplete - you only get red squigglies when the key is incorrect.

To improve the performance, we can opt out of this process entirely, at the cost of no red squigglies for translation keys. Hopefully we can resolve this in the future.

It's not clear why this became an issue only recently (like past couple weeks). We've tried rolling back the app dependencies, VSCode extensions, VSCode itself, and the TS version to before the time when the issue started, but nothing seems to improve the performance.

1. Disable `resolveJsonModule` in `tsconfig.json`
2. Ignore TS in `i18n.ts` when importing the JSON
3. Comment out the custom types in `i18.d.ts` entirely

It's possible that only `3` is needed to fix the issue.

I've tested building the app and running the build - it works fine, and translation works fine.
2023-06-28 23:55:44 -04:00
..
.husky feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
.yarn/releases all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
config feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
dist merge with main 2023-06-08 21:08:43 -04:00
docs dummy commit to make github actions run 2023-06-04 22:55:35 +10:00
patches chore(ui): bump all packages 2023-06-25 13:44:10 +10:00
public/locales Merge branch 'main' of github.com:invoke-ai/InvokeAI into feat/controlnet-control-modes 2023-06-24 17:05:57 -07:00
src fix(ui): improve IDE TS performance by not resolving JSON 2023-06-28 23:55:44 -04:00
static move static into invokeai.frontend.web directory for dist install 2023-05-22 16:48:17 -04:00
tests Partial migration of UI to nodes API (#3195) 2023-04-22 13:10:20 +10:00
__init__.py Revert "Merge branch 'main' into bugfix/reenable-ckpt-conversion-to-ram" 2023-03-06 14:29:39 +13:00
.eslintignore move static into invokeai.frontend.web directory for dist install 2023-05-22 16:48:17 -04:00
.eslintrc.js feat(ui): wip resizable pinnable drawer 2023-03-12 20:13:37 +11:00
.gitignore build(ui): add yalc to gitignore 2023-05-11 11:55:51 +10:00
.prettierignore Partial migration of UI to nodes API (#3195) 2023-04-22 13:10:20 +10:00
.prettierrc.js feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
.yarnrc all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
.yarnrc.yml all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
favicon.ico all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00
index.html feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
package.json feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
stats.html merge with main 2023-06-08 21:08:43 -04:00
tsconfig.json fix(ui): improve IDE TS performance by not resolving JSON 2023-06-28 23:55:44 -04:00
tsconfig.node.json feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
vite.config.ts build(ui): treeshake lodash via lodash-es 2023-04-28 21:56:43 +10:00
yarn.lock feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00