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

Fix ambiguous default export #113

Merged
merged 1 commit into from
Nov 13, 2023

Commits on Nov 13, 2023

  1. Fix ambiguous default export

    Currently Omorphia's index file has both the default and named exports.
    While this is totally supported by native ESM, it's pretty hard for
    transpilers to process and may lead to situations where named exports
    cannot be imported directly, requiring destructuring on the default
    import. For this and just consistency reasons, you'd usually avoid
    mixing default and named exports.
    
    This commit removes the default export, making it just an another named
    export called `plugin`.
    
    BREAKING CHANGE: plugin is now exported using `plugin` export, rather
    than the default export.
    brawaru committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    fe36c18 View commit details
    Browse the repository at this point in the history