-
Notifications
You must be signed in to change notification settings - Fork 73
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: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest #7285
base: develop
Are you sure you want to change the base?
feat: migrate from CRA4 to Vite, Storybook to v8, jest to Vitest #7285
Conversation
@KenLSM see chromatic useful. will ensure the migration has 0 frontend changes!!! |
@justynoh this PR officially has no regressions hehehehe |
@justynoh added datadog chunking back to the pipeline. Can push to staging to try? |
not v9 for now since lots of breaking changes plugin prettier also v4 for now, v5 breaks due to
since we are still on CRA4
# Conflicts: # .eslintrc
so react-email templates has no type errors when rendering on the server
v2 requires more changes, not worth it for now
actually good to snapshot full page instead of just fixed pages
hypothesis is that multiple toasts are rendering???
does not seem to be needed now that we use vite
0a96443
to
9f75cd7
Compare
2c7a9e4
to
9177241
Compare
frontend/package.json
Outdated
"test": "cross-env SKIP_PREFLIGHT_CHECK=true craco test --silent", | ||
"start": "vite", | ||
"build": "vite build", | ||
"serve": "vite preview", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove don't add confusion
frontend/package.json
Outdated
"start": "vite", | ||
"build": "vite build", | ||
"serve": "vite preview", | ||
"test": "cross-env SKIP_PREFLIGHT_CHECK=true vitest", | ||
"eject": "react-scripts eject", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need this anymore
frontend/package.json
Outdated
"eject": "react-scripts eject", | ||
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006", | ||
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook", | ||
"storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need node options anymore
This PR moves the frontend toolchain from CRA4 to Vite.
Generally everything seems to be working fine, including decryption workers.
Requires a bunch of changes that has to be performed all at the same time:
TODO: