Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best way to import formatZonedTime? #51

Open
bklynate opened this issue Nov 30, 2023 · 1 comment
Open

What is the best way to import formatZonedTime? #51

bklynate opened this issue Nov 30, 2023 · 1 comment

Comments

@bklynate
Copy link

I'm in the process of optimizing the JavaScript bundle size for my company's application. The 'timezone-support' package seems to be significantly contributing to the size. In my codebase, there's a particular file where the following lines need refactoring:

const { getZonedTime, findTimeZone } = require('timezone-support');
const { formatZonedTime } = require('timezone-support/dist/parse-format');

Given that 'timezone-support' is now updated to version 3 or above, I'm looking for the most efficient method to import formatZonedTime without having to load the complete 1MB+ distribution of 'timezone-support'.

@bklynate
Copy link
Author

bklynate commented Dec 5, 2023

@prantlf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant