interface ConfigItem {
    dirname: string;
    file?: null | {
        request: string;
        resolved: string;
    };
    name?: string;
    options?: false | object;
    value: object | ((...args) => any);
}

Properties

dirname: string

The path that the options are relative to.

file?: null | {
    request: string;
    resolved: string;
}

Information about the plugin's file, if Babel knows it. *

Type declaration

  • request: string

    The file that the user requested, e.g. "@babel/env"

  • resolved: string

    The full path of the resolved file, e.g. "/tmp/node_modules/@babel/preset-env/lib/index.js"

name?: string

The name that the user gave the plugin instance, e.g. plugins: [ ['env', {}, 'my-env'] ]

options?: false | object

The options object passed to the plugin.

value: object | ((...args) => any)

The resolved value of the plugin.

Type declaration

    • (...args): any
    • Parameters

      • Rest ...args: any[]

      Returns any