Function _removeDoubleDefault

  • This method is necessary to import certain packages on both ESM and CJS modules. Without this, we get a different structure on each module. For instance:

    • CJS: { default: [Getter], WebBundlr: [Getter] }
    • ESM: { default: { default: [Getter], WebBundlr: [Getter] } } This method fixes this by ensure there is not double default in the imported package.

    Type Parameters

    • T

    Parameters

    • pkg: T

    Returns T

Generated using TypeDoc