Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

webpack-provide-global-plugin

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

webpack-provide-global-plugin

A webpack plugin to provide installed packages as named global variables

    0.0.1latest

Version published
Maintainers
1
Yearly downloads
10,412
decreased by-26.2%

Weekly downloads

Readme

Source

Provides installed packages as globals for webpack

Helper plugin that uses the webpack ProvidePlugin with the help of the (imports-loader)[https://github.com/webpack-contrib/imports-loader] and the (exports-loader)[https://github.com/webpack-contrib/exports-loader].

Installation

You must be running webpack on node 0.12.x or higher

Install the plugin with npm:

$ npm install --save-dev webpack-provide-global-plugin

Example

Setting up fetch and Promise globals:

plugins: [ new WebpackProvideGlobalPlugin({ "es6-promise": "Promise", "whatwg-fetch": "fetch" }) ]

This is is identical to writing:

plugins: [ new webpack.ProvidePlugin({ "Promise": "imports-loader?this=>global!exports-loader?global.Promise!es6-promise", "fetch": "imports-loader?this=>global!exports-loader?global.fetch!whatwg-fetch" }) ]

Keywords

FAQs

What is webpack-provide-global-plugin?

A webpack plugin to provide installed packages as named global variables

Is webpack-provide-global-plugin popular?

The npm package webpack-provide-global-plugin receives a total of 144 weekly downloads. As such, webpack-provide-global-plugin popularity was classified as not popular.

Is webpack-provide-global-plugin well maintained?

We found that webpack-provide-global-plugin demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 17 Feb 2017
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc