You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source is written to be a class, and then an export is created, which is just a plain function calling a static function inside that class.
The whole source could be a collection of plain functions, and looking at the export, you could export the main resize function as-is. Currently, you're wrapping it in a function with an otherwise identical signature, which is unneccesary overhead.
In short:
No need for it to be a class
No need for a wrapper export function
This will make for a cleaner source, and smaller package size.
The text was updated successfully, but these errors were encountered:
The source is written to be a class, and then an export is created, which is just a plain function calling a static function inside that class.
The whole source could be a collection of plain functions, and looking at the export, you could export the main resize function as-is. Currently, you're wrapping it in a function with an otherwise identical signature, which is unneccesary overhead.
In short:
This will make for a cleaner source, and smaller package size.
The text was updated successfully, but these errors were encountered: