Skip to content

What is the best way to import formatZonedTime? #51

@bklynate

Description

@bklynate

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions