{"maintainers":[{"name":"bebraw","email":"bebraw@gmail.com"},{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},{"name":"ericclemmons","email":"eric@smarterspam.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"peeri","email":"developers@peerigon.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"spacek33z","email":"kees@webduck.nl"},{"name":"thelarkinn","email":"sean.larkin@cuw.edu"}],"dist-tags":{"latest":"0.7.1"},"author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","readme":"[![npm][npm]][npm-url]\n[![deps][deps]][deps-url]\n[![test][test]][test-url]\n[![chat][chat]][chat-url]\n\n<div align=\"center\">\n  <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" vspace=\"\" hspace=\"25\"\n      src=\"https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg\">\n  </a>\n  <h1>Imports Loader</h1>\n  <p>The imports loader allows you to use modules that depend on specific global variables.<p>\n</div>\n\nThis is useful for third-party modules that rely on global variables like `$` or `this` being the `window` object. The imports loader can add the necessary `require('whatever')` calls, so those modules work with webpack.\n\n<h2 align=\"center\">Install</h2>\n\n```bash\nnpm install imports-loader\n```\n\n<h2 align=\"center\">Usage</h2>\n\nGiven you have this file `example.js`\n\n```javascript\n$(\"img\").doSomeAwesomeJqueryPluginStuff();\n```\n\nthen you can inject the `$` variable into the module by configuring the imports-loader like this:\n\n``` javascript\nrequire(\"imports-loader?$=jquery!./example.js\");\n```\n\nThis simply prepends `var $ = require(\"jquery\");` to `example.js`.\n\n### Syntax\n\nQuery value | Equals\n------------|-------\n`angular` | `var angular = require(\"angular\");`\n`$=jquery` | `var $ = require(\"jquery\");`\n`define=>false` | `var define = false;`\n`config=>{size:50}` | `var config = {size:50};`\n`this=>window` | `(function () { ... }).call(window);`\n\n### Multiple values\n\nMultiple values are separated by comma `,`:\n\n```javascript\nrequire(\"imports-loader?$=jquery,angular,config=>{size:50}!./file.js\");\n```\n\n### webpack.config.js\n\nAs always, you should rather configure this in your `webpack.config.js`:\n\n```javascript\n// ./webpack.config.js\n\nmodule.exports = {\n    ...\n    module: {\n        loaders: [\n            {\n                test: require.resolve(\"some-module\"),\n                loader: \"imports-loader?this=>window\"\n            }\n        ]\n    }\n};\n```\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n<h2 align=\"center\">Typical Use Cases</h2>\n\n### jQuery plugins\n\n`imports-loader?$=jquery`\n\n### Custom Angular modules\n\n`imports-loader?angular`\n\n### Disable AMD\n\nThere are many modules that check for a `define` function before using CommonJS. Since webpack is capable of both, they default to AMD in this case, which can be a problem if the implementation is quirky.\n\nThen you can easily disable the AMD path by writing\n\n```javascript\nimports-loader?define=>false\n```\n\nFor further hints on compatibility issues, check out [Shimming Modules](http://webpack.github.io/docs/shimming-modules.html) of the official docs.\n\n<h2 align=\"center\">Maintainers</h2>\n\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/166921?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/bebraw\">Juho Vepsäläinen</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars2.githubusercontent.com/u/8420490?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/d3viant0ne\">Joshua Wiens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/533616?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/SpaceK33z\">Kees Kluskens</a>\n      </td>\n      <td align=\"center\">\n        <img width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/3408176?v=3&s=150\">\n        </br>\n        <a href=\"https://github.com/TheLarkInn\">Sean Larkin</a>\n      </td>\n    </tr>\n  <tbody>\n</table>\n\n\n[npm]: https://img.shields.io/npm/v/imports-loader.svg\n[npm-url]: https://npmjs.com/package/imports-loader\n\n[deps]: https://david-dm.org/webpack-contrib/imports-loader.svg\n[deps-url]: https://david-dm.org/webpack-contrib/imports-loader\n\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack\n\n[test]: http://img.shields.io/travis/webpack-contrib/imports-loader.svg\n[test-url]: https://travis-ci.org/webpack-contrib/imports-loader\n","repository":{"type":"git","url":"git+https://github.com/webpack/imports-loader.git"},"users":{"jasonxu":true,"princetoad":true,"fadihania":true,"chenzhuoqi":true,"langri-sha":true,"fanyegong":true,"bh032":true,"sean-oneal":true},"bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"license":"MIT","versions":{"0.1.0":{"name":"imports-loader","version":"0.1.0","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"license":"MIT","_id":"imports-loader@0.1.0","dist":{"shasum":"d44697b29856652cc46ae907da7ead847d45d220","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.1.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.1.1":{"name":"imports-loader","version":"0.1.1","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.1.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"license":"MIT","_id":"imports-loader@0.1.1","dist":{"shasum":"08a6a321b28818b307a239d857e1a29c3132b492","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.1.1.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.1.2":{"name":"imports-loader","version":"0.1.2","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.1.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"license":"MIT","_id":"imports-loader@0.1.2","dist":{"shasum":"3636bd307cab75c2f52ecda7c9640b489b3d0b49","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.1.2.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.5.0":{"name":"imports-loader","version":"0.5.0","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"imports-loader@0.5.0","dist":{"shasum":"25937e337ab37eb3f602dca76f439537e1ac4772","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.5.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.6.0":{"name":"imports-loader","version":"0.6.0","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"https://github.com/sokra/source-map/archive/master.tar.gz"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"imports-loader@0.6.0","dist":{"shasum":"237668e469390c0f78641adfb291f9df25a95368","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.6.1":{"name":"imports-loader","version":"0.6.1","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"0.1.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"imports-loader@0.6.1","dist":{"shasum":"2872804cc8ead8582deb90ad6abd587a890e8d1f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.6.2":{"name":"imports-loader","version":"0.6.2","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"0.1.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"imports-loader@0.6.2","dist":{"shasum":"163c8134bd7ec619b45ae87a2fa5f3138cd6ff7e","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.6.3":{"name":"imports-loader","version":"0.6.3","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"0.1.x"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"repository":{"type":"git","url":"https://github.com/webpack/imports-loader.git"},"bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"homepage":"https://github.com/webpack/imports-loader","_id":"imports-loader@0.6.3","dist":{"shasum":"f3ba5070960afd4509b6d852db7e7fd136b9cc8f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.6.4":{"name":"imports-loader","version":"0.6.4","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"0.1.x"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack/imports-loader.git"},"gitHead":"7f46be5376f870072d06a497e1c2fc79ba9259c1","bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"homepage":"https://github.com/webpack/imports-loader#readme","_id":"imports-loader@0.6.4","scripts":{},"_shasum":"2179421d9b9745f08d0e6a401a5c09b376e2acbb","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.12.2","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"dist":{"shasum":"2179421d9b9745f08d0e6a401a5c09b376e2acbb","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.4.tgz"},"directories":{}},"0.6.5":{"name":"imports-loader","version":"0.6.5","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","dependencies":{"loader-utils":"0.2.x","source-map":"0.1.x"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack/imports-loader.git"},"gitHead":"8e51c89a52b8cfb1fd5b46ee7c884e6f0350d050","bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"homepage":"https://github.com/webpack/imports-loader#readme","_id":"imports-loader@0.6.5","scripts":{},"_shasum":"ae74653031d59e37b3c2fb2544ac61aeae3530a6","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.0.0","_npmUser":{"name":"sokra","email":"tobias.koppers@googlemail.com"},"dist":{"shasum":"ae74653031d59e37b3c2fb2544ac61aeae3530a6","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.6.5.tgz"},"maintainers":[{"name":"sokra","email":"tobias.koppers@googlemail.com"}],"directories":{}},"0.7.0":{"name":"imports-loader","version":"0.7.0","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","scripts":{"test":"mocha","travis":"npm run -s test"},"dependencies":{"loader-utils":"^0.2.16","source-map":"^0.5.6"},"devDependencies":{"mocha":"^3.1.2","should":"^11.1.1"},"files":["index.js"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack/imports-loader.git"},"gitHead":"1867023597676be7cf87dd7c0406c12b18f165ca","bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"homepage":"https://github.com/webpack/imports-loader#readme","_id":"imports-loader@0.7.0","_shasum":"468c04de8075941cfab28146c755c24cc1f36ccd","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"spacek33z","email":"kees@webduck.nl"},"dist":{"shasum":"468c04de8075941cfab28146c755c24cc1f36ccd","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.7.0.tgz"},"maintainers":[{"name":"peerigon","email":"developers@peerigon.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"spacek33z","email":"kees@webduck.nl"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/imports-loader-0.7.0.tgz_1481152244105_0.3661070913076401"},"directories":{}},"0.7.1":{"name":"imports-loader","version":"0.7.1","author":{"name":"Tobias Koppers @sokra"},"description":"imports loader module for webpack","scripts":{"test":"mocha","travis:test":"npm run -s test"},"dependencies":{"loader-utils":"^1.0.2","source-map":"^0.5.6"},"devDependencies":{"mocha":"^3.1.2","should":"^11.1.1"},"files":["index.js"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack/imports-loader.git"},"gitHead":"3c8b7f2957a1782b569b6ad61dcd1a4f4657da74","bugs":{"url":"https://github.com/webpack/imports-loader/issues"},"homepage":"https://github.com/webpack/imports-loader#readme","_id":"imports-loader@0.7.1","_shasum":"f204b5f34702a32c1db7d48d89d5e867a0441253","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},"dist":{"shasum":"f204b5f34702a32c1db7d48d89d5e867a0441253","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/imports-loader/-/imports-loader-0.7.1.tgz"},"maintainers":[{"name":"bebraw","email":"bebraw@gmail.com"},{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},{"name":"ericclemmons","email":"eric@smarterspam.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"peerigon","email":"developers@peerigon.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"spacek33z","email":"kees@webduck.nl"},{"name":"thelarkinn","email":"sean.larkin@cuw.edu"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/imports-loader-0.7.1.tgz_1488001622843_0.6636173303704709"},"directories":{}}},"name":"imports-loader","time":{"modified":"2017-04-12T23:32:33.491Z","created":"2012-11-06T15:02:17.646Z","0.1.0":"2012-11-06T15:02:20.768Z","0.1.1":"2012-11-06T15:03:59.608Z","0.1.2":"2012-11-06T15:18:33.920Z","0.5.0":"2013-02-01T07:46:24.785Z","0.6.0":"2013-03-26T15:50:42.113Z","0.6.1":"2013-05-08T13:05:54.782Z","0.6.2":"2013-10-16T12:22:45.527Z","0.6.3":"2014-05-19T14:45:14.507Z","0.6.4":"2015-05-24T07:29:39.690Z","0.6.5":"2015-10-18T21:58:07.492Z","0.7.0":"2016-12-07T23:10:44.704Z","0.7.1":"2017-02-25T05:47:05.017Z"},"readmeFilename":"README.md","homepage":"https://github.com/webpack/imports-loader#readme"}