chore: remove unused devDependencies - #242
Merged
nicomiguelino merged 3 commits intoAug 14, 2026
Merged
Conversation
Removes five devDependencies with no usage anywhere in the codebase, confirmed via depcheck and manual grep/config checks: - @babel/preset-typescript: webpack uses ts-loader for TypeScript, not babel - @testing-library/jest-dom: no imports found in src or spec - @types/jest: not referenced, tsconfig types array does not include it - @types/jsdom: jsdom itself is only used in plain .js files outside tsconfig scope - style-loader: MiniCssExtractPlugin.loader is used instead Verified with npm test, lint check, tsc, and a production build.
nicomiguelino
requested review from
renatgalimov and
vpetersson
and
a lite review from Copilot
August 14, 2026 16:17
There was a problem hiding this comment.
Pull request overview
This PR cleans up the project’s development dependency graph by removing several devDependencies that are no longer referenced by build, lint, or test configuration, aligning the repo with its current TypeScript (ts-loader) and Jasmine-based test setup.
Changes:
- Removed unused devDependencies from
package.json:@babel/preset-typescript,@testing-library/jest-dom,@types/jest,@types/jsdom, andstyle-loader. - Updated
package-lock.jsonto reflect the removed direct devDependencies and prune related no-longer-needed packages.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Removes unused direct devDependencies from the project’s dev toolchain. |
| package-lock.json | Regenerates lockfile to drop the removed direct dependencies and associated packages where applicable. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…-dependencies-2026.08.14
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
package.json:15
@babel/preset-typescriptwas removed fromdevDependencies, but it is still pulled in transitively viababel-preset-react-app(used byspec/support/jasmine.jswithpresets: ['react-app']). If the intent is to actually eliminate this package from the install tree (and realize the node_modules size reduction), you’ll need to replace/removebabel-preset-react-appor switch the Babel preset configuration to an explicit preset list that doesn’t include TypeScript, then regenerate the lockfile.
"@babel/core": "^7.28.4",
"@babel/preset-env": "^7.28.3",
"@babel/preset-react": "^7.27.1",
"@babel/register": "^7.28.3",
…on CSS sass-loader auto-switches dart-sass to compressed output style whenever webpack runs in production mode. Compressed output prepends a UTF-8 BOM to each compiled stylesheet, and since bootstrap-icons.scss and bootstrap.scss are compiled as separate webpack modules, each carries its own BOM. postcss (used internally by css-loader) round-trips that BOM through parse/stringify, so when MiniCssExtractPlugin concatenates the modules into one popup.css, Bootstrap's own BOM lands directly in front of its `:root,[data-bs-theme=light]` selector, invalidating it. That silently breaks every Bootstrap CSS custom property, including the sans-serif font stack, so the popup fell back to a serif font in any production build. Forcing sassOptions.style to 'expanded' keeps dart-sass from emitting the BOM in the first place, regardless of webpack mode.
vpetersson
approved these changes
Aug 14, 2026
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.
Summary