{"_id":"@allex/rollup-plugin-node-resolve","_rev":"6-0410c671e9c14dac3c14770e20eac6be","name":"@allex/rollup-plugin-node-resolve","dist-tags":{"latest":"4.0.0","next":"4.0.0"},"versions":{"3.4.0":{"name":"@allex/rollup-plugin-node-resolve","description":"Bundle third-party dependencies in node_modules","version":"3.4.0","devDependencies":{"buble":"^0.19.3","es5-ext":"^0.10.39","eslint":"^4.18.0","mocha":"^5.0.1","rollup":"^0.56.3","rollup-plugin-buble":"^0.19.2","rollup-plugin-commonjs":"^8.3.0","string-capitalize":"^1.0.1","vlq":"^1.0.0"},"main":"dist/rollup-plugin-node-resolve.cjs.js","module":"dist/rollup-plugin-node-resolve.es.js","jsnext:main":"dist/rollup-plugin-node-resolve.es.js","scripts":{"build":"rollup -c","pretest":"npm run build","test":"mocha","posttest":"eslint src test/*.js","lint":"eslint src","prepublishOnly":"npm test","prepare":"npm run build"},"dependencies":{"builtin-modules":"^2.0.0","is-module":"^1.0.0","resolve":"^1.1.6"},"repository":{"type":"git","url":"git+https://github.com/fedorio/rollup-plugin-node-resolve.git"},"keywords":["rollup","rollup-plugin","es2015","npm","modules"],"author":{"name":"Rich Harris","email":"richard.a.harris@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/fedorio/rollup-plugin-node-resolve/issues"},"homepage":"https://github.com/fedorio/rollup-plugin-node-resolve#readme","gitHead":"1e058ae357dc59c72f10e1b407627db7ddf08d64","_id":"@allex/rollup-plugin-node-resolve@3.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"allex","email":"allex.wxn@gmail.com"},"dist":{"integrity":"sha512-M6asPsrCwlPa7uixid1R2+/n1Ud8gmACJNTEJ7nRDozyhdiWUJfRw/rSTqdITyxe/EYFjueOb1mtnT5IEPef+g==","shasum":"aae62af72b7d78d146e9764f048badf1319f1671","tarball":"https://registry.npmjs.org/@allex/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.4.0.tgz","fileCount":7,"unpackedSize":30690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyK6oCRA9TVsSAnZWagAAI1kP/RZ/18WcjpGnQxtUwPYg\n9tT3dwk8Qj3C77hU5F8hTpKUwYFIdZuBC+/LEQsxx7puiWJGPz2/eTV+zZI3\neRyGLCioHjksjEuXYlcN+vRHO+Ss/gy5HonJQasKSFnRS9+2ckJ6xWgWG1fm\n6inAW2c7qAWVxdTMA1EE263eNWDEh7PLHh45pUcQZ5OZTFchggMIegW7BVqc\nsccdY9Di1JlIdMfPqJBNHmh4kwai0jsmC+Z1DbLdklsXVompCbXbMYoTh3Tv\nUs0GxB4M8xpy296MDle+r9fa92Sh0KHuQ5Tn3vy86plJItGlSnRZ9E+3+pHv\n+7DR/0sOXJtBLFbs+dZ0wteK27ioy3v3fPn1+DqDycRzQvwSskHJv8Cez3Wk\nmiQgyxMN2eD0aI/aT8H2nIZ4zbsCBJpAYjUMUbsqjv+zTY4W74bOdSlhsotf\nkLNT2o9RJ5gTHr3P9R0Flq4SiXOQpV6MzwNVULpwhk4Y4lCpS0Kbx716tr+b\nTICJ4kOdnBSFrqM9oO9iadRYM3DSd+C32xxumltDNckLUj1X+aJq2X2YR06l\nobMeQlK5zRIbNFZa22z7eFiPvAEJo7skFhf6JDTscXhWrFyP//yE4LNgEa7d\n+ANcMULZX4q9zAEIlDYczKaFh/KBkoIQ3AQPSnYhxVEnadJ+pn+3tdaGSBYF\n2SnZ\r\n=8+j6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7jx7M+iQZdseEdGQVHDTGWYwGA8XD2JTxS5GtkTZwXwIgOrRABm2oi4ELFa4OGhmGEqu1Wrx4Xo6fxaWZyzO4/24="}]},"maintainers":[{"name":"allex","email":"allex.wxn@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-resolve_3.4.0_1539878567639_0.15833201790492812"},"_hasShrinkwrap":false},"3.4.1-beta.1":{"name":"@allex/rollup-plugin-node-resolve","description":"Bundle third-party dependencies in node_modules","version":"3.4.1-beta.1","devDependencies":{"buble":"^0.19.3","es5-ext":"^0.10.39","eslint":"^4.18.0","mocha":"^5.0.1","rollup":"^0.56.3","rollup-plugin-buble":"^0.19.2","rollup-plugin-commonjs":"^8.3.0","string-capitalize":"^1.0.1","vlq":"^1.0.0"},"main":"dist/rollup-plugin-node-resolve.cjs.js","module":"dist/rollup-plugin-node-resolve.es.js","jsnext:main":"dist/rollup-plugin-node-resolve.es.js","scripts":{"build":"rollup -c","pretest":"npm run build","test":"mocha","posttest":"eslint src test/*.js","lint":"eslint src","prepublishOnly":"npm test","prepare":"npm run build"},"dependencies":{"builtin-modules":"^2.0.0","is-module":"^1.0.0","resolve":"^1.1.6"},"repository":{"type":"git","url":"git+https://github.com/fedorio/rollup-plugin-node-resolve.git"},"keywords":["rollup","rollup-plugin","es2015","npm","modules"],"author":{"name":"Rich Harris","email":"richard.a.harris@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/fedorio/rollup-plugin-node-resolve/issues"},"homepage":"https://github.com/fedorio/rollup-plugin-node-resolve#readme","readme":"# @allex/rollup-plugin-node-resolve\n\n*This plugin used to be called rollup-plugin-npm*\n\nLocate modules using the [Node resolution algorithm](https://nodejs.org/api/modules.html#modules_all_together), for using third party modules in `node_modules`\n\n> Based on offical rollup-plugin-node-resolve, with some improvents and pr merges:\n>\n> * New mainfields option [#182](https://github.com/rollup/rollup-plugin-node-resolve/pull/182)\n> * Add supports alias options\n> * Fix pkg.browser mappings issue by specifying a value of `false` [#183](https://github.com/rollup/rollup-plugin-node-resolve/pull/183)\n\n## Installation\n\n```bash\nnpm install --save-dev @allex/rollup-plugin-node-resolve@next\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport resolve from '@allex/rollup-plugin-node-resolve';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife'\n  },\n  name: 'MyModule',\n  plugins: [\n    resolve({\n\n      // the fields to scan in a package.json to determine the entry point..\n      mainFields: ['module', 'main'], // Default: ['module', 'main']\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"module\" field for ES6 module if possible\n      module: true, // Default: true\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"jsnext:main\" if possible\n      // legacy field pointing to ES6 module in third-party libraries,\n      // deprecated in favor of \"pkg.module\":\n      // - see: https://github.com/rollup/rollup/wiki/pkg.module\n      jsnext: true,  // Default: false\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"main\" field or index.js, even if it's not an ES6 module\n      // (needs to be converted from CommonJS to ES6\n      // – see https://github.com/rollup/rollup-plugin-commonjs\n      main: true,  // Default: true\n\n      // DEPRECATED: use `mainFields` instead\n      // some package.json files have a `browser` field which\n      // specifies alternative files to load for people bundling\n      // for the browser. If that's you, use this option, otherwise\n      // pkg.browser will be ignored\n      browser: true,  // Default: false\n\n      // not all files you want to resolve are .js files\n      extensions: [ '.mjs', '.js', '.jsx', '.json' ],  // Default: [ '.mjs', '.js', '.json', '.node' ]\n\n      // whether to prefer built-in modules (e.g. `fs`, `path`) or\n      // local ones with the same names\n      preferBuiltins: false,  // Default: true\n\n      // Lock the module search in this path (like a chroot). Module defined\n      // outside this path will be marked as external\n      jail: '/my/jail/path', // Default: '/'\n\n      // Set to an array of strings and/or regexps to lock the module search\n      // to modules that match at least one entry. Modules not matching any\n      // entry will be marked as external\n      only: [ 'some_module', /^@some_scope\\/.*$/ ], // Default: null\n\n      // If true, inspect resolved files to check that they are\n      // ES2015 modules\n      modulesOnly: true, // Default: false\n\n      // Any additional options that should be passed through\n      // to node-resolve\n      customResolveOptions: {\n        moduleDirectory: 'js_modules'\n      },\n\n      // Provide alias to overrides specifing modules.\n      alias: {\n        'readable-stream': require.resolve('rollup-plugin-node-builtins/src/es6/stream.js')\n      }\n    })\n  ]\n};\n```\n\n## Using with @allex/rollup-plugin-commonjs\n\nSince most packages in your node_modules folder are probably legacy CommonJS rather than JavaScript modules, you may need to use [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs):\n\n```js\n// rollup.config.js\nimport resolve from '@allex/rollup-plugin-node-resolve';\nimport commonjs from '@allex/rollup-plugin-commonjs';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife'\n  },\n  name: 'MyModule',\n  plugins: [\n    resolve(),\n    commonjs()\n  ]\n};\n```\n\n\n## License\n\nMIT\n","readmeFilename":"README.md","gitHead":"b63feb54ba226681fecbf690936b10f0dcb521f5","_id":"@allex/rollup-plugin-node-resolve@3.4.1-beta.1","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"allex","email":"allex.wxn@gmail.com"},"dist":{"integrity":"sha512-yIqAfbvOLLBqI5M9+f1njvZHV+v7s6GUNDLC0/KqJabfYH2KjmgEKJ/fyKUXhByFE+wTN9QNHs+CIiBtr5hQIw==","shasum":"6e9af0689daf68865cbdfb22422251342f0dce00","tarball":"https://registry.npmjs.org/@allex/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.4.1-beta.1.tgz","fileCount":6,"unpackedSize":29047,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyZulCRA9TVsSAnZWagAAWFQP/3aFNRuRSsBExxUt6zri\nxplLpwBgbyk4ygxWK6vEPTl8Gd+CsrMhJ0cRsqFZJAFiYFt5FStOFyBTq/6P\nBd4naNAlkd2ZQfSo2oAzVeMAX+cu5BBfKIoRJTNp7gwHlMnmuflwhHw9gmSk\nSsriM5ot5AC31oFm5H2aocwa4I0UwZN+44HZk5i4XIEvsh04gCri6oDtWpVx\nQZm+nRnk91zogaOOPHlcZoJJJnL4WA/brDxZ5cD3+gQn69Gq6VujeyVfA59F\nvhmgyNp3JPKF/inG0dPU1cldZHHb6U3vNFPWqaEvsmq8OYVasqYnYPbXaqQl\nYU+HTqqQzIX7rI7E2eak+EvVt/Zp46m/Ln0DtsE+xcDL/plGq8ohbj1YdOIq\nwLuOvUp/GcoUFL//xTX1V7kK+7CRZulj9SWwUoMABHwHsWGZHjhEv/AXpGya\nxvlqaITojI37QjnCp/QwUcCaMmHhzpl9fcgZUt4W/KjUhgGzsdS4/mpMNLem\nVUj0wAzyoROyBAE4vdFJidyUdvZIt9cIMry04925VHI0pmPhWPWL9Ninjf3f\ncN/sAyZTe7MfQRK7Src6gkB38XyKd7uKXuryqif6DiJlqM4wBOjSy18qo9++\nfUmASot4rEq2JpeL/hmf+MgLzFkb57xJFw+qGC9x5USErk3VcpUEor5AvRUW\nComP\r\n=ooZK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSqjz22cMr6a/3wpuWX6BAPH8qAqfiDTr+5DTp/jt5AwIgMfhX6ZtHIOYBFyaVnTOFArEnpVDUytz0YgqtJQtDFKc="}]},"maintainers":[{"name":"allex","email":"allex.wxn@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-resolve_3.4.1-beta.1_1539939236967_0.20293744804629288"},"_hasShrinkwrap":false},"4.0.0":{"name":"@allex/rollup-plugin-node-resolve","description":"Bundle third-party dependencies in node_modules","version":"4.0.0","devDependencies":{"buble":"^0.19.6","es5-ext":"^0.10.46","eslint":"^5.10.0","mocha":"^5.2.0","rollup":"^0.67.4","rollup-plugin-buble":"^0.19.4","rollup-plugin-commonjs":"^9.2.0","string-capitalize":"^1.0.1","vlq":"^1.0.0"},"main":"dist/rollup-plugin-node-resolve.cjs.js","module":"dist/rollup-plugin-node-resolve.es.js","jsnext:main":"dist/rollup-plugin-node-resolve.es.js","scripts":{"build":"rollup -c","pretest":"npm run build","test":"mocha","posttest":"eslint src test/*.js","lint":"eslint src","prepublishOnly":"npm test","prepare":"npm run build"},"dependencies":{"builtin-modules":"^3.0.0","is-module":"^1.0.0","resolve":"^1.8.1"},"repository":{"type":"git","url":"git+https://github.com/fedorio/rollup-plugin-node-resolve.git"},"keywords":["rollup","rollup-plugin","es2015","npm","modules"],"author":{"name":"Rich Harris","email":"richard.a.harris@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/fedorio/rollup-plugin-node-resolve/issues"},"homepage":"https://github.com/fedorio/rollup-plugin-node-resolve#readme","readme":"# @allex/rollup-plugin-node-resolve\n\n*This plugin used to be called rollup-plugin-npm*\n\nLocate modules using the [Node resolution algorithm](https://nodejs.org/api/modules.html#modules_all_together), for using third party modules in `node_modules`\n\n> Based on forked from [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve), with some improvements and PR merges:\n>\n> * New mainfields option [#182](https://github.com/rollup/rollup-plugin-node-resolve/pull/182)\n> * Add supports alias options\n> * Fix pkg.browser mappings issue by specifying a value of `false` [#183](https://github.com/rollup/rollup-plugin-node-resolve/pull/183)\n\n## Installation\n\n```bash\nnpm install --save-dev @allex/rollup-plugin-node-resolve@next\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport resolve from '@allex/rollup-plugin-node-resolve';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife'\n  },\n  name: 'MyModule',\n  plugins: [\n    resolve({\n\n      // the fields to scan in a package.json to determine the entry point..\n      mainFields: ['module', 'main'], // Default: ['module', 'main']\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"module\" field for ES6 module if possible\n      module: true, // Default: true\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"jsnext:main\" if possible\n      // legacy field pointing to ES6 module in third-party libraries,\n      // deprecated in favor of \"pkg.module\":\n      // - see: https://github.com/rollup/rollup/wiki/pkg.module\n      jsnext: true,  // Default: false\n\n      // DEPRECATED: use `mainFields` instead\n      // use \"main\" field or index.js, even if it's not an ES6 module\n      // (needs to be converted from CommonJS to ES6\n      // – see https://github.com/rollup/rollup-plugin-commonjs\n      main: true,  // Default: true\n\n      // DEPRECATED: use `mainFields` instead\n      // some package.json files have a `browser` field which\n      // specifies alternative files to load for people bundling\n      // for the browser. If that's you, use this option, otherwise\n      // pkg.browser will be ignored\n      browser: true,  // Default: false\n\n      // not all files you want to resolve are .js files\n      extensions: [ '.mjs', '.js', '.jsx', '.json' ],  // Default: [ '.mjs', '.js', '.json', '.node' ]\n\n      // whether to prefer built-in modules (e.g. `fs`, `path`) or\n      // local ones with the same names\n      preferBuiltins: false,  // Default: true\n\n      // Lock the module search in this path (like a chroot). Module defined\n      // outside this path will be marked as external\n      jail: '/my/jail/path', // Default: '/'\n\n      // Set to an array of strings and/or regexps to lock the module search\n      // to modules that match at least one entry. Modules not matching any\n      // entry will be marked as external\n      only: [ 'some_module', /^@some_scope\\/.*$/ ], // Default: null\n\n      // If true, inspect resolved files to check that they are\n      // ES2015 modules\n      modulesOnly: true, // Default: false\n\n      // Any additional options that should be passed through\n      // to node-resolve\n      customResolveOptions: {\n        moduleDirectory: 'js_modules'\n      },\n\n      // Provide alias to overrides specifing modules.\n      alias: {\n        'readable-stream': require.resolve('rollup-plugin-node-builtins/src/es6/stream.js')\n      }\n    })\n  ]\n};\n```\n\n## Using with @allex/rollup-plugin-commonjs\n\nSince most packages in your node_modules folder are probably legacy CommonJS rather than JavaScript modules, you may need to use [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs):\n\n```js\n// rollup.config.js\nimport resolve from '@allex/rollup-plugin-node-resolve';\nimport commonjs from '@allex/rollup-plugin-commonjs';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife'\n  },\n  name: 'MyModule',\n  plugins: [\n    resolve(),\n    commonjs()\n  ]\n};\n```\n\n\n## License\n\nMIT\n","readmeFilename":"README.md","gitHead":"9a21f9a56bd76e4efafb55032431b91364a27298","_id":"@allex/rollup-plugin-node-resolve@4.0.0","_nodeVersion":"10.5.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-Qh0MBd0CXIKTULFYptyo6+Ut9373S8YxfvFrF68jCYNMu3IS4y+18dhyz+eoSBRWN/Xus0VPKa0C3BkdaA7DEQ==","shasum":"69e13ad77e15ddf1d80d08d360c8924ac516245f","tarball":"https://registry.npmjs.org/@allex/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.0.0.tgz","fileCount":6,"unpackedSize":28953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZQxXCRA9TVsSAnZWagAAcDYP/Rfef3dT1novBaBQZJx/\nmfjCnLYghmDS5IXB5f1n108nYbgIftUjGCbMaIj3m3v5pNzlI9zNxQb/3HXf\nNj8Mt56oP6BUp3h6fwU/Wb8xO0xNS2gwEoNe9Z6yZJ7bEnaK1BpuZzW8d5qA\nVW8PR0Ik6EcdCxLSxWtJWMLEPEYrgHtcucrjGr5xDNQAMM3DJDgq339UzDj5\nCgl5ltt++ewE8CCrrhJ3lvGrpc3E1psvNWm7k0UVPltE+X+yYe76CIUUhBBc\nll3CXv9bWQdj5Zim9vD2yBEFXH2krbGfaQ3nXaF6ltm9OqN6ChHx6w9QSuX3\nk5JCJ5WOWN9hNfjOxkbF2GnavVoGFSS1leIGXqXOY8pCE5K+rqBcJdpoHhzE\n6wDAKO4oycd8xwlDCYtON6FU+JCkh9dl0OZHwp5EE/L07OA0gYGyTVjcREfU\nvEF3OBvNQey0UPUjGxU8pVgwjPrPEt/m9v7bc7L+xxTo9RNh08QmvgVLPgnn\njxxGrV3L0lCdAUqlH/hjNCJyEldJ+NF8jU3bsxaWxgl0Nvl82nYL8ceIshhj\nY+2DOF7QKHLzYNfE7SKuC+g43cJ+KHH0doQU83R0TbREUC5XeE1jG3XSP8GC\nR0mdQwTIX5FVn63TdoRHzF1LKG0s6xyUuAUKcSRp9s9ZFh8vyFG7PVOtbY66\nCzDU\r\n=LMta\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnf4aSGThR3aazWXCfMtJGUPJqm5iCrYwPhoXjoAbFtgIhAPioyNcKBktkwptxQwT5QW6O/s/pWi2M25MD4wTtjHB/"}]},"maintainers":[{"name":"allex","email":"allex.wxn@gmail.com"}],"_npmUser":{"name":"allex","email":"allex.wxn@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-node-resolve_4.0.0_1550126166956_0.56008845153384"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-18T16:02:47.478Z","3.4.0":"2018-10-18T16:02:47.732Z","modified":"2022-04-04T13:32:17.699Z","3.4.1-beta.1":"2018-10-19T08:53:57.071Z","4.0.0":"2019-02-14T06:36:07.053Z"},"maintainers":[{"name":"allex","email":"allex.wxn@gmail.com"}],"description":"Bundle third-party dependencies in node_modules","homepage":"https://github.com/fedorio/rollup-plugin-node-resolve#readme","keywords":["rollup","rollup-plugin","es2015","npm","modules"],"repository":{"type":"git","url":"git+https://github.com/fedorio/rollup-plugin-node-resolve.git"},"author":{"name":"Rich Harris","email":"richard.a.harris@gmail.com"},"bugs":{"url":"https://github.com/fedorio/rollup-plugin-node-resolve/issues"},"license":"MIT","readme":"","readmeFilename":""}