Skip to content

ESM modules and json importing [feature request] #20494

Description

@damianobarbati

Will it be possible in the future to import .json files as we used to required .json files?

import pkg from './package'
import { name, version } from './package'

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions