Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add typescript checker plugin #12344

Merged
merged 1 commit into from Nov 17, 2021
Merged

feat: Add typescript checker plugin #12344

merged 1 commit into from Nov 17, 2021

Conversation

joheriks
Copy link
Contributor

@joheriks joheriks commented Nov 12, 2021

@joheriks joheriks added the vite Tickets related to vite support label Nov 12, 2021
@joheriks joheriks added this to In progress in Frontend build optimization via automation Nov 12, 2021
caalador
caalador previously approved these changes Nov 12, 2021
@Artur-
Copy link
Member

Artur- commented Nov 12, 2021

Does this have any performance impact?

@joheriks
Copy link
Contributor Author

joheriks commented Nov 12, 2021

Testing with https://github.com/vaadin/fusion-crm-tutorial (30 ts source files including frontend/generated). On my machine with checking:

2021-11-12 18:09:15.843  INFO 10539 --- [nPool-worker-19] c.v.b.devserver.AbstractDevServerRunner  : Started Vite. Time: 1176ms

and without checking (disabling the plugin):

2021-11-12 18:10:48.414  INFO 10578 --- [nPool-worker-19] c.v.b.devserver.AbstractDevServerRunner  : Started Vite. Time: 896ms

Noticed some other problems though that should block this PR from getting merged:

  • It reports type errors for MobX extensions
  • Using npm instead of pnpm results in a peer dependency conflict

@joheriks joheriks dismissed caalador’s stale review November 12, 2021 16:13

Let's not merge it yet

@joheriks
Copy link
Contributor Author

joheriks commented Nov 15, 2021

It reports type errors for MobX extensions

Seems I only had incomplete local installation due to the npm peer dependency issue due to the Vite beta version.

@Artur- Artur- merged commit 81bd546 into master Nov 17, 2021
@Artur- Artur- deleted the vite-plugin-checker branch November 17, 2021 08:49
Frontend build optimization automation moved this from In progress to Done Nov 17, 2021
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.rc1 and is also targeting the upcoming stable 22.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[Vite] Create a configuration for type checking (from TypeScript) in production builds
4 participants