chore: remove unused moment.js dependency#92
Conversation
moment is declared in package.json but not imported anywhere in src/. The only textual occurrence is in a comment (transfer-form.page.ts:62). Removing reduces bundle size and dependency footprint.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Removes
momentfrompackage.jsondependencies as it is not actually used anywhere in the codebase.Investigation
A full repo scan (
grep -rniE moment --include=*.ts --include=*.html --include=*.scss) found only two textual matches:package.json:62— the dependency declaration itself.src/app/pages/logged-in/transfer/transfer-form/transfer-form.page.ts:62— inside a code comment describing a type literal (// 'string' | 'js-date' | 'moment' | 'time' | 'object'), not an actual import or call.There are zero
importorrequirestatements referencing moment.Changes
moment ^2.30.1fromdependenciesinpackage.json.package-lock.jsonaccordingly (npm install --package-lock-only --legacy-peer-deps).The remaining
"moment"reference inpackage-lock.jsonis apeerDependenciesdeclaration from another package and is not an installed copy.Benefits
node_modulessize.Testing
--legacy-peer-deps(the same flag the project already requires due to pre-existing capacitor peer-dep conflicts).