Skip to content

FR: Support module import in the "firebase" package for Nodejs 13/14 #3069

Open
@Feiyang1

Description

@Feiyang1

Submodule resolution algorithm for module import has changed since Nodejs 13 and our current way of defining submodules using nested package.jsons doesn't work anymore, see nodejs/node#33410

We should use the "exports" field in the root package.json instead:

{
  "exports": {
    "./app": "./app/dist/index.cjs.js"
  }
}

Note that this only affects importing firebase in Nodejs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions