{"_id":"@storybook/babel-plugin-require-context-hook","_rev":"12-72f3287364a1bf9eb71be14d6efcd6bc","name":"@storybook/babel-plugin-require-context-hook","dist-tags":{"canary":"1.0.1--canary.4.86c1352.0","latest":"1.0.1"},"versions":{"1.0.1--canary.4.86c1352.0":{"name":"@storybook/babel-plugin-require-context-hook","version":"1.0.1--canary.4.86c1352.0","keywords":["babel","webpack"],"author":{"name":"Greg Smith","email":"smr.kyu@gmail.com"},"license":"MIT","_id":"@storybook/babel-plugin-require-context-hook@1.0.1--canary.4.86c1352.0","maintainers":[{"name":"kylegach","email":"kyle.gach@gmail.com"},{"name":"tooppaaa","email":"clementdungler@gmail.com"},{"name":"ndelangen","email":"ndelangen@me.com"},{"name":"shilman","email":"michael@lab80.co"},{"name":"alexandrebodin","email":"bodin.alex@gmail.com"},{"name":"hypnosphi","email":"talpa@yandex.ru"},{"name":"danielduan","email":"dduan@yahoo.com"},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"pksunkara","email":"pavan.sss1991@gmail.com"},{"name":"tmeasday","email":"tom@thesnail.org"},{"name":"gongreg","email":"gytis.vinclovas@gmail.com"},{"name":"domyen","email":"dom@hichroma.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"kylesuss","email":"susskyle@gmail.com"},{"name":"ghengeveld","email":"info@ghengeveld.nl"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"dandean","email":"me@dandean.com"},{"name":"codebyalex","email":"wilsonc.alexander@gmail.com"},{"name":"mrmckeb","email":"mrmckeb.npm@outlook.com"},{"name":"dannyhw","email":"danny.h.williams@hotmail.com"},{"name":"winkervsbecks","email":"varunvachhar@gmail.com"},{"name":"rvasikarla","email":"vasikarla.raj@gmail.com"},{"name":"amalik2","email":"ahnmalik2@gmail.com"},{"name":"lshadler","email":"lshadler13@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yannbf","email":"yannbf@gmail.com"},{"name":"dylanpiercey","email":"pierceydylan@gmail.com"},{"name":"monkeyworks","email":"igor.szyporyn@gmail.com"},{"name":"darleendenno","email":"darleendenno@gmail.com"}],"homepage":"https://github.com/storybookjs/babel-plugin-require-context-hook#readme","bugs":{"url":"https://github.com/storybookjs/babel-plugin-require-context-hook/issues"},"auto":{"plugins":["npm","released"],"onlyPublishWithReleaseLabel":true},"dist":{"shasum":"ca4891dc429610f8e2b641fb9c478b3c3c5666dd","tarball":"https://registry.npmjs.org/@storybook/babel-plugin-require-context-hook/-/babel-plugin-require-context-hook-1.0.1--canary.4.86c1352.0.tgz","fileCount":11,"integrity":"sha512-O0Qrwd38K+WxlvwNr5oI9PPkK00oR3DQ516I/MGCwt8RiNZ62deszjgIRJkFq7LpecGfgORO0gdra46n/mhClw==","signatures":[{"sig":"MEQCIH6IN25us+8Pxd07wDKAylyn2kbYMVOrLAB7D0oSCPEOAiBLehwDikQQ5Yo0FdQ/v2Y4oJsLAc9zY681N6+RWYNX0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5588},"main":"index.js","gitHead":"86c13524fdd6337e0c3609c6b833db0ba36e034d","scripts":{"test":"node test/run.js","release":"auto shipit"},"_npmUser":{"name":"shilman","email":"michael@lab80.co"},"repository":{"url":"git+https://github.com/storybookjs/babel-plugin-require-context-hook.git","type":"git"},"_npmVersion":"6.14.15","description":"Babel plugin to replicate Webpack require.context","directories":{},"_nodeVersion":"14.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^10.32.2","babel-core":"^6.26.3","babel-register":"^6.26.0","@auto-it/released":"^10.32.2"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-require-context-hook_1.0.1--canary.4.86c1352.0_1636618725293_0.03732104230784805","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@storybook/babel-plugin-require-context-hook","version":"1.0.1","keywords":["babel","webpack"],"author":{"name":"Greg Smith","email":"smr.kyu@gmail.com"},"license":"MIT","_id":"@storybook/babel-plugin-require-context-hook@1.0.1","maintainers":[{"name":"kylegach","email":"kyle.gach@gmail.com"},{"name":"tooppaaa","email":"clementdungler@gmail.com"},{"name":"ndelangen","email":"ndelangen@me.com"},{"name":"shilman","email":"michael@lab80.co"},{"name":"alexandrebodin","email":"bodin.alex@gmail.com"},{"name":"hypnosphi","email":"talpa@yandex.ru"},{"name":"danielduan","email":"dduan@yahoo.com"},{"name":"igor-dv","email":"davydkin.igor@gmail.com"},{"name":"pksunkara","email":"pavan.sss1991@gmail.com"},{"name":"tmeasday","email":"tom@thesnail.org"},{"name":"gongreg","email":"gytis.vinclovas@gmail.com"},{"name":"domyen","email":"dom@hichroma.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"kylesuss","email":"susskyle@gmail.com"},{"name":"ghengeveld","email":"info@ghengeveld.nl"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"dandean","email":"me@dandean.com"},{"name":"codebyalex","email":"wilsonc.alexander@gmail.com"},{"name":"mrmckeb","email":"mrmckeb.npm@outlook.com"},{"name":"dannyhw","email":"danny.h.williams@hotmail.com"},{"name":"winkervsbecks","email":"varunvachhar@gmail.com"},{"name":"rvasikarla","email":"vasikarla.raj@gmail.com"},{"name":"amalik2","email":"ahnmalik2@gmail.com"},{"name":"lshadler","email":"lshadler13@gmail.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yannbf","email":"yannbf@gmail.com"},{"name":"dylanpiercey","email":"pierceydylan@gmail.com"},{"name":"monkeyworks","email":"igor.szyporyn@gmail.com"},{"name":"darleendenno","email":"darleendenno@gmail.com"}],"homepage":"https://github.com/storybookjs/babel-plugin-require-context-hook#readme","bugs":{"url":"https://github.com/storybookjs/babel-plugin-require-context-hook/issues"},"auto":{"plugins":["npm","released"],"onlyPublishWithReleaseLabel":true},"dist":{"shasum":"0a4ec9816f6c7296ebc97dd8de3d2b7ae76f2e26","tarball":"https://registry.npmjs.org/@storybook/babel-plugin-require-context-hook/-/babel-plugin-require-context-hook-1.0.1.tgz","fileCount":12,"integrity":"sha512-WM4vjgSVi8epvGiYfru7BtC3f0tGwNs7QK3Uc4xQn4t5hHQvISnCqbNrHdDYmNW56Do+bBztE8SwP6NGUvd7ww==","signatures":[{"sig":"MEYCIQCsdzIfWBKfVDWB1SoWYesjfmt9+MgLJKb1M2DpGXEdQwIhANhLL7ZxZJoXHCv7rAp/sUiYLzZQKWUhvESvj9mul3U3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2cazCRA9TVsSAnZWagAAnKEP/jFC3cFTtUAgBBK3l7Fo\n8Z0ZrQj7W8vUwj4AD8QRCN/kA8EokGqVc+Z2oK7Y8xB1ghMTE3h6rMeib3J9\nsvSTgijVeuERmLNycuv+U3sBuErH0KGi+gKoEdZat6hC9ZNsBAgS94mSsxV0\niRKE/DHOXuoOVxikqSyJniykQXVu3lTxMBJaTFU3XbBcJq19FSOSaqlECbBK\nU0M4AD7s+rT9IKRK0ONfqsT/uWn8pZFsPv/L0bCb9rmyqBJUnUVBAIPorKAf\nmXyR1JZoKciEgz0g/FjOcRmMyEEkoZ8Zoc5W1gZCr0JboFFzDPPXwZyn720S\nyffqvmF47Z6dlMRIKgVIBdu8htJHstv6caFxQMzODRf50kzHUb2h7zc9fqX4\n+1E/Rt38z6dCHOEUWuTqjh5+ZHGABNroF/Q3fRA9vShXnHeRbdscP6GmMacY\nL77sKSauwhNISVW3TaU3YZwwbgOZdJYfWLDHP5UnzEc0N0T6+AWecGy3uI4Z\ntez1vUdlzwWWSp1Ip8FZmWvxwaf9SEn5Z6WjT6i33ZCMOFi/RVCwdtBsGhw+\nmzc5UnFgRxRG8qHK3uj1JIgp/X/ORjdS1pvdxMfjXEbNmyC8WxO6qRwaEE+q\nOUqQQUR9QNml44xU/tL5f6F671pwgzm3YP602d/av52X544Yzj4yZC1CdJZ0\nLBPP\r\n=3YXf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"321aedb50de13a2480cd8554f8ae6b11e7120141","scripts":{"test":"node test/run.js","release":"auto shipit"},"_npmUser":{"name":"shilman","email":"michael@lab80.co"},"repository":{"url":"git+https://github.com/storybookjs/babel-plugin-require-context-hook.git","type":"git"},"_npmVersion":"6.14.15","description":"Babel plugin to replicate Webpack require.context","directories":{},"_nodeVersion":"14.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"auto":"^10.32.2","babel-core":"^6.26.3","babel-register":"^6.26.0","@auto-it/released":"^10.32.2"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-require-context-hook_1.0.1_1636625015539_0.3339816528900388","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-11-11T08:18:45.228Z","modified":"2026-10-01T17:07:35.147Z","1.0.1--canary.4.86c1352.0":"2021-11-11T08:18:45.495Z","1.0.1":"2021-11-11T10:03:35.702Z"},"bugs":{"url":"https://github.com/storybookjs/babel-plugin-require-context-hook/issues"},"author":{"name":"Greg Smith","email":"smr.kyu@gmail.com"},"license":"MIT","homepage":"https://github.com/storybookjs/babel-plugin-require-context-hook#readme","keywords":["babel","webpack"],"repository":{"url":"git+https://github.com/storybookjs/babel-plugin-require-context-hook.git","type":"git"},"description":"Babel plugin to replicate Webpack require.context","maintainers":[{"email":"ndelangen@me.com","name":"ndelangen"},{"email":"shilman@gmail.com","name":"shilman"},{"email":"tom@thesnail.org","name":"tmeasday"},{"email":"gert@chromatic.com","name":"ghengeveld"},{"email":"varunvachhar@gmail.com","name":"winkervsbecks"},{"email":"yannbf@gmail.com","name":"yannbf"},{"email":"kyle.gach@gmail.com","name":"kylegach"},{"email":"jeppe@reinhold.is","name":"jreinhold"},{"email":"kasperpeulen@gmail.com","name":"kasperpeulen"},{"email":"dev@valentinpalkovic.dev","name":"valentinpalkovic"},{"email":"dom@hichroma.com","name":"domyen"},{"email":"storybookbot@gmail.com","name":"storybook-bot"},{"email":"vanessa.yh.yuen@gmail.com","name":"vanessayuenn"}],"readme":"# babel-plugin-require-context-hook\n\n> NOTE: This is a (hopefully temporary) fork of [babel-plugin-require-context-hook](https://github.com/smrq/babel-plugin-require-context-hook), which appears to be unmaintained.\n\n## Usage\n\nIn your babelrc:\n\n```\n\"plugins\": [\n\t\"@storybook/babel-plugin-require-context-hook\"\n]\n```\n\nWherever you configure babel-register (your source file, a register script, etc):\n\n```\nrequire('@storybook/babel-plugin-require-context-hook/register')();\n```\n\n## How it works\n\nThe register script `@storybook/babel-plugin-require-context-hook/register` implements the function `require.context` with an extra parameter-- the directory in which the calling file resides-- and places that function on the global scope.\n\nThe Babel plugin `@storybook/babel-plugin-require-context-hook` rewrites all calls to `require.context` into calls to this global function, passing in `__dirname` as the extra parameter.\n","readmeFilename":"README.md"}