Merged
Conversation
ab03f58 to
8711711
Compare
Replaces Webpack with Vite 7 as the build tool. **Build system** - Replace `webpack.config.js` with vite.config.ts - Update all npm scripts (`serve`, `publish`, `tauri:build-html`) to use Vite - Remove Webpack-related dependencies (webpack, css-loader, style-loader, ts-loader, html-webpack-plugin, workbox-webpack-plugin, etc.) - Add Vite dependencies (vite, @vitejs/plugin-react, vite-plugin-pwa, favicons) - Add tsconfig.node.json for the Vite config file **WASM & asset preloading** - Custom Vite plugin injects `<link rel="preload">` tags and an inline `<script>` with `WebAssembly.compileStreaming` for the WASM file, matching Webpack's inline script behavior - Preloads both font files (timer, FiraSans) for the preload scanner **PWA** - Service worker registration is now inlined via vite-plugin-pwa (`injectRegister: "inline"`) - Service worker filename kept as `service-worker.js` for migration compatibility - Favicon generation moved from `favicons-webpack-plugin` to the `favicons` library, run at config time - Added support for PWA install screenshots (`screenshot-wide.png`, `screenshot-narrow.png`) - Generated icons written to icons (gitignored) **Code changes** - Remove `indexDelayed.ts` — imports moved directly into `index.tsx` since Vite handles code splitting automatically - CSS module imports changed from `import * as classes` to `import classes` (Vite default export style) - Several `import` statements changed to `import type` for type-only imports - Add `"ESNext"` to tsconfig lib, add `"vite/client"` types - Nest `.segmentIconContainer` styles inside `.runEditorTable` in `RunEditor.module.css` (this was necessary because the order of the CSS changed). - Safari compatibility: Babel plugin for `using` declarations - Dev builds tolerate GitHub API failures gracefully **Dependency updates** - lucide-react ^0.544.0 → ^0.575.0 - eslint ^9.20.1 → ^10.0.1
8711711 to
47306cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces Webpack with Vite 7 as the build tool.
Build system
webpack.config.jswith vite.config.tsserve,publish,tauri:build-html) to use ViteWASM & asset preloading
<link rel="preload">tags and an inline<script>withWebAssembly.compileStreamingfor the WASM file, matching Webpack's inline script behaviorPWA
injectRegister: "inline")service-worker.jsfor migration compatibilityfavicons-webpack-pluginto thefaviconslibrary, run at config timescreenshot-wide.png,screenshot-narrow.png)Code changes
indexDelayed.ts— imports moved directly intoindex.tsxsince Vite handles code splitting automaticallyimport * as classestoimport classes(Vite default export style)importstatements changed toimport typefor type-only imports"ESNext"to tsconfig lib, add"vite/client"types.segmentIconContainerstyles inside.runEditorTableinRunEditor.module.css(this was necessary because the order of theCSS changed).
usingdeclarationsDependency updates