Interface UnbundleOptions

Unbundle plugin options.

Hierarchy

  • UnbundleOptions

Properties

Methods

Properties

resolutionRoot?: string | ImportResolution<Import> | (() => ImportResolution<Import> | PromiseLike<ImportResolution<Import>>)

Resolution root of the imports.

One of:

  • path to the root package directory,
  • an ImportResolution instance (may cause issues with watch mode), or
  • a function returning ImportResolution instance or a promise-like instance resolving to one.

By default, new resolution root will be created for the package in current working directory.

Type declaration

    • (): ImportResolution<Import> | PromiseLike<ImportResolution<Import>>
    • Returns ImportResolution<Import> | PromiseLike<ImportResolution<Import>>

Methods

  • Decides whether to bundle the module or not.

    The decision on bundling or externalizing each module will be made based on how the root module depends on target one:

    • Implied, runtime and peer dependencies will be externalized.
    • For self-dependencies and synthetic ones no decision will be made. Rollup will decide then how to bundle them. I.e. which chunk to place them into.
    • The rest of the dependencies (such as development, and self-dependencies) will be bundled.

    Parameters

    Returns boolean | NullValue | PromiseLike<boolean | NullValue>

    true to externalize module, false to bundle it, null/undefined to make Rollup to decide, or a promise-like instance resolved to one of the above.

Generated using TypeDoc