Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Feature/removing lodash #4

Merged
merged 1 commit into from
Dec 24, 2023
Merged

Conversation

guillaumebriday
Copy link
Member

Comment on lines 1 to 3
import { Controller } from '@hotwired/stimulus'
import { throttle } from 'lodash'
import { throttle } from './utils'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be even simpler to have the trigger declared inside the file (again, in the case of an import map, it's best not to expand unnecessarily across several files).

Copy link
Member Author

@guillaumebriday guillaumebriday Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got it, but I also don't want to architecture the project just for import-maps and I guess it's completely fine to load this really small file

~~Removing lodash will make a huge difference 👍 ~~

I didn't know but vite imported the file itself directly in the .mjs file so there is no issue for you

Screenshot 2023-12-24 at 14 42 09

@guillaumebriday guillaumebriday merged commit f344520 into master Dec 24, 2023
3 of 4 checks passed
@guillaumebriday guillaumebriday deleted the feature/removing-lodash branch December 24, 2023 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove lodash/throttle dependency
2 participants