This package has been deprecated

Author message:

this package has been deprecated

@wessberg/rollup-plugin-di
TypeScript icon, indicating that this package has built-in type declarations

1.0.87 • Public • Published

rollup-plugin-di

NPM version License-mit

A rollup plugin for DI - Compile-time reflection and dependency injection.

Installation

Simply do: npm install @wessberg/rollup-plugin-di.

Usage

Add it to the plugins array of your rollup configuration:

rollup({
  plugins: [
  	DI(),
  	// Other plugins goes here...
  ]
});

Configuration

You can pass in the following options:

  • excludeFiles: RegExp|RegExp[]|Set<RegExp>
    • Files matching this or these regular expressions will be ignored.
  • shimGlobalObject: boolean
    • By default, the plugin will add a shim for the global object in top of your bundle. You may target an environment where global is defined already (such as Node), and if so, you can set this to false.

See the documentation for more details on how to actually use DI.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @wessberg/rollup-plugin-di

Weekly Downloads

3

Version

1.0.87

License

MIT

Unpacked Size

8.34 kB

Total Files

8

Last publish

Collaborators

  • wessberg