@launchbadge/protobufjs-inquire
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@protobufjs/inquire

npm

Requires a module only if available and hides the require call from bundlers.

API

  • inquire(moduleName: string): ?Object
    Requires a module only if available.

Browser Bundler Compatibility

Inquire can be used in browser modules if these configurations are set:

  1. If a bundler is used, all modules loaded with inquire() must be added to the bundle config field "externals". This is supported by webpack, browserify (gulp), rollup, and possibly others.
  2. When used in node/npm packages for distribution (including protobufjs) all modules loaded with inquire() must be ignored in the package.json browser option. This is also supported by webpack, browserify and rollup.

License: BSD 3-Clause License

/@launchbadge/protobufjs-inquire/

    Package Sidebar

    Install

    npm i @launchbadge/protobufjs-inquire

    Weekly Downloads

    0

    Version

    1.1.0

    License

    BSD-3-Clause

    Unpacked Size

    5.74 kB

    Total Files

    10

    Last publish

    Collaborators

    • mehcode