Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Why not exporting as default when there's no need to use destructuring  #41

@tripflex

Description

@tripflex

First, thank you for all your work on this lib, it is greatly appreciated 👍

export { default as VueContext } from './vue-context';

Why not just export this as default instead of making it so that we have to use destructuring to import it?

Reason I ask is if we are doing code splitting it requires more code, when it could just be exported as default since there's nothing else being exported (so even tree shaking wouldn't matter in this situation)
#33 (comment)

This could be both a named export and default export (to maintain backwards compatibility)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions