Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Feature: Conditional imports #113

@GeoffreyBooth

Description

@GeoffreyBooth

Node should provide an ESM equivalent of:

if (process.env.DEBUG)
  var { inspect } = require('util');

In other words, let users tell Node to potentially not load modules or module exports into memory, if they might not be used.

Use case 41.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions