Repository navigation
feat: Migrate to vite - #314
ShrimpCryptid wants to merge 16 commits into
Conversation
|
| "vitest": "^3.2.4" | ||
| }, | ||
| "dependencies": { | ||
| "@aics/browsing-context-messaging": "~1.1", |
There was a problem hiding this comment.
I'm fairly certain that this is no longer being used... going to remove it in a follow-up PR
|
|
||
| | Env var | Default | Options | | ||
| | ------- |-------- |---------| | ||
| |`DEPLOYMENT_ENV` | dev | "dev", "staging", "production" | |
There was a problem hiding this comment.
This env var was not set or used.
There was a problem hiding this comment.
🟡 Changes recommended
CSS export naming breaks annotation styling, and the default asset base breaks subdirectory-hosted previews.
2 open findings
What changed in this PR
Migrates Cell Feature Explorer from webpack to Vite, addressing #312.
Changes:
- Replaces webpack tooling and scripts with Vite.
- Moves environment flags to Vite-backed constants.
- Updates assets, TypeScript settings, and development documentation.
| File | Description |
|---|---|
| webpack/webpack.config.js | Removes webpack configuration. |
| webpack/plugins.js | Removes webpack plugins. |
| webpack/constants.js | Removes webpack-specific constants. |
| vite.config.js | Configures Vite builds and development. |
| typings/images.d.ts | Declares image imports. |
| tsconfig.json | Updates module output setting. |
| tsconfig.base.json | Updates TypeScript compilation targets. |
| src/vite-env.d.ts | Declares Vite environment types. |
| src/styles/README.md | Removes webpack styling documentation. |
| src/state/image-dataset/reducer.ts | Uses the centralized dataset flag. |
| src/state/image-dataset/firebase/configure-firebase.ts | Uses the centralized database flag. |
| src/state/configure-store.ts | Uses the centralized DevTools flag. |
| src/constants/index.ts | Reads Vite environment flags. |
| src/components/Icons/index.tsx | Updates the logo import path. |
| src/assets/images/AICS-logo-full.png | Adds the bundled logo asset. |
| README.md | Updates local development instructions. |
| public/images/icon-CFE.png | Adds a public icon asset. |
| public/images/favicon.ico | Adds the public favicon. |
| package.json | Replaces webpack scripts and dependencies. |
| index.html | Adds the Vite application entry point. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
9c1cb07 to
ab95983
Compare
frasercl
left a comment
There was a problem hiding this comment.
Looks good! Excited to have fewer dependencies, fewer LOC, fewer plugins, fewer config files...
| import { LoadingOutlined } from "@ant-design/icons"; | ||
| import AicsLogoWhite from "../../images/AICS-logo-full.png"; | ||
|
|
||
| import AicsLogoWhite from "../../assets/images/AICS-logo-full.png"; |
There was a problem hiding this comment.
Just curious (maybe I should know this already)... is there a vite reason that images had to move, or did you just think this was a nicer place to put them? (No problems either way, to be extra clear.)
There was a problem hiding this comment.
Moved them just for project organization, to match how we handle it in other projects. Not required though!

Problem
Closes #312, "Migrate to vite."
Estimated review size: small, 15-20 minutes
Solution
vitefromwebpack.import.meta.env)postcss- andwebpack-related dependencies.plotly.jsdependency.Type of change
Steps to Verify:
Screenshots (optional):
Keyfiles (delete if not relevant):
vite.config.jspackage.json