{"_id":"babel-plugin-lazy-import","name":"babel-plugin-lazy-import","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"babel-plugin-lazy-import","version":"1.0.0","dependencies":{"@babel/helper-module-transforms":"^7.5.5","@babel/helper-plugin-utils":"^7.0.0","@babel/helpers":"^7.5.5","@babel/plugin-transform-parameters":"^7.4.4","@babel/template":"^7.4.4"},"peerDependencies":{"@babel/core":"^7"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-syntax-class-properties":"^7.2.0","@babel/plugin-syntax-decorators":"^7.2.0","@babel/preset-typescript":"^7.3.3"},"description":"This plugin finds all imported symbols that are only used in async functions, and moves them into asynchronous `await import()` expressions. The following:","license":"MIT","_id":"babel-plugin-lazy-import@1.0.0","dist":{"shasum":"e42f6ee4963e49a396c1c3ecaf62ec58ee3bdeed","integrity":"sha512-y5tywKy/P9DxpsCf/GXppzDXD8jFCn4rjVU+8WpXczB0jUzzZHquXpHHSjl69exrxqO1lPJPlLZKg+D0qji51A==","tarball":"https://registry.npmjs.org/babel-plugin-lazy-import/-/babel-plugin-lazy-import-1.0.0.tgz","fileCount":4,"unpackedSize":7591,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICno99CLfkavMBJJ1MKhTdSjZ9C/axV2+n+4HNAVWb6JAiEAk6W3Nh0//52yC35Kay2MQVrHx4oJyftCHneyrSayRM8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3oBlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpzog/8DcdJyrsXghG9R+Lr4PA/6AG0hrxyhwZw9m+HNSwJIl4zASIQ\r\nFIiu4i/82JdNGxdZfWjfqKdcuOFIHmBL7XASHLnq6nH4N8DQAaIWfzcaA2Z9\r\nOaCYGVPrEKaqEDm7/IVJiJGdEGTa6lN3u0n5VNDXmKIZIunxpMu6q0B3NR9H\r\n5F5NM9ZN0CBoxwuG7TgmdX4HAvZcHRx2DcjWALLoTiJ3dwpjgSTcOEkMOq/p\r\n0CllPDCDxQC2FL5pcqL0IlRBuDa6/16Vtw9lAZPw5Dqv0sZ0gRZaPPLrMEbw\r\nTbEnYXe19WWyqkTrlDhT2NOlV/0LLXzamn2MeGQg2wn9A9s3eGAUNax8wuG8\r\n4xXuXMEPMT3ZbWol/Uwuw2WB+1jxNmmPEZiHDFmevEXfmZQldKxSSXUIMiLK\r\nHfteFCVk7XdIob6bvqYYFcLGv8HyjvQxKyklZ+33M6udxdeZdDDOA7d1i2dd\r\nhpF5QPizjug6TiPNFuY4Sld0SriU4qXmbpQrBBgN/YcUalo5Sb3bnqOzfIkl\r\nah9eMif8dnTvWDpTWkvTrnQ4IKVAtJHfcDMybV7iHnG8CECOyImzRAbQLMLV\r\nZ1lLjLFztjg4z6OxNpM6aZZ88zXchSmbsW0L0My+pc5TcPW7orSf3f9pf8HX\r\nDOFNigpIM/v9VFXGaigDNureI1xBPFYHoFY=\r\n=2u0H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arcanis","email":"nison.mael@gmail.com"},"directories":{},"maintainers":[{"name":"arcanis","email":"nison.mael@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-lazy-import_1.0.0_1658749028960_0.5653146097139625"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-25T11:37:08.960Z","1.0.0":"2022-07-25T11:37:09.149Z","modified":"2022-07-25T11:37:09.282Z"},"maintainers":[{"name":"arcanis","email":"nison.mael@gmail.com"}],"description":"This plugin finds all imported symbols that are only used in async functions, and moves them into asynchronous `await import()` expressions. The following:","license":"MIT","readme":"# babel-plugin-lazy-imports\n\nThis plugin finds all imported symbols that are only used in async functions, and moves them into asynchronous `await import()` expressions. The following:\n\n```js\nimport {foo} from 'foo';\nimport {bar} from 'bar';\n\nexport async function doFoo() {\n  foo();\n}\n\nexport function doBar() {\n  bar();\n}\n```\n\nWill be turned into the following:\n\n```js\nimport {bar} from 'bar';\n\nexport async function doFoo() {\n  const {foo} = await import('foo');\n  foo();\n}\n\nexport function doBar() {\n  bar();\n}\n```\n\n## Why?\n\nUsing this plugin avoids having to execute all the modules in your application from the beginning. It's particularly useful for CLI tools, as they typically only use a subset of all the possible commands during each invocation.\n\n## License (MIT)\n\n> **Copyright © 2019 Maël Nison**\n>\n> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n>\n> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n>\n> THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md"}