{"_id":"@0kzh/babel-plugin-transform-vite-meta-hot","name":"@0kzh/babel-plugin-transform-vite-meta-hot","dist-tags":{"latest":"0.0.0-semantically-released"},"versions":{"0.0.0-semantically-released":{"name":"@0kzh/babel-plugin-transform-vite-meta-hot","version":"0.0.0-semantically-released","description":"babel plugin that emulates vite's import.meta.hot functionality","main":"lib/index.js","typings":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/OpenSourceRaidGuild/babel-vite.git"},"keywords":["babel","vite","plugin","import","meta","hot"],"author":{"name":"Kelvin Zhang","email":"me@kelvinzhang.ca"},"license":"MIT","bugs":{"url":"https://github.com/OpenSourceRaidGuild/babel-vite/issues"},"homepage":"https://github.com/OpenSourceRaidGuild/babel-vite#readme","scripts":{"build":"kcd-scripts build --out-dir lib","test":"kcd-scripts test"},"devDependencies":{"@babel/core":"^7.13.8","@types/babel-plugin-tester":"^9.0.1","babel-plugin-tester":"^10.0.0","kcd-scripts":"^12.0.0","typescript":"^4.2.2"},"dependencies":{"@babel/runtime":"^7.13.9","@types/babel__core":"^7.1.12"},"_id":"@0kzh/babel-plugin-transform-vite-meta-hot@0.0.0-semantically-released","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-Jr6epCzhVwqWYrkA7Ug/9Qj/3Xbcw3ZuH5dWQPxBEIX7ZKubOG/9COgmGcJky7ksp7AJRgxuXwPKuHMBzjeTdw==","shasum":"7c5301909b3da18391bb4f0c0120fe0a2a852105","tarball":"https://registry.npmjs.org/@0kzh/babel-plugin-transform-vite-meta-hot/-/babel-plugin-transform-vite-meta-hot-0.0.0-semantically-released.tgz","fileCount":8,"unpackedSize":10618,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgr8zQCDKa01t90mRFPffOyl4ie4hXPyyk/GiDoxdZLwIhAJyNvCNXMNobeGxBCIysSLtYaQt8n+Op6fa+extTsGMB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxu1zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmodzw//b5skb7fed5c7cUHY/5YPAlNSNlSoGEaWLtna9K8Cb+2UuR4n\r\n0HhakvIkgwftEg26SDPMtty0/3qtf+8bcY2gkNGFn0UEqOT44RhT5OvXKi9d\r\ngRkVUlmvcTkj+paTVc/f8+bKLookjk2enomoryZploETTTGjIMdfHA89kB3o\r\ncjcWFh4n45M6Cg1M63B2ZhOUAM83TSmwtp5j3cWqNGlVK085iHxl5Y2PFZDb\r\nAUbBVyjtxHc+wyigjQHQ4XRZ3d4cwkNqTfTPdBjg/ldn2Fldzt869X6oLtpq\r\nz/faOr3AOPTkKU9dA0/9eBl4kp9KRtXOv5QqWRcipVIdNwODyor2Q4rIBhwH\r\nenrQdUBgxgdTEvPT3HE81icp9oi/75ab0iRAyLbq3Q58FyciiNSztyLM4mcq\r\nFf0Ln8fBEAJ9JSZolMrYGDhcveVZQkzJAMixv12B+hs3/JZcstDbn72Lk04R\r\nvmsAUe0ZuFNFx7+VoSF9K+G1zujGIntZc/JiN7ZNTAgQCcl5NdOM6oQuigph\r\nm7AF6Kc52K5icZFHxO9W25htjAvjX4zGHlguJErZWdSqhc+tzZTPuBPqatqe\r\nseCgcjnqEYrshHl8ipMrkKExiMbVmS3THn/pOwfqndMmrnQ5QJxl5OyV64jv\r\nVWlx75oDUJFDPa213W23KjbvbGBH7aC+byI=\r\n=vmGg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0kzh","email":"me@kelvinzhang.ca"},"directories":{},"maintainers":[{"name":"0kzh","email":"me@kelvinzhang.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-vite-meta-hot_0.0.0-semantically-released_1673981299493_0.939813260416724"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-17T18:48:19.406Z","0.0.0-semantically-released":"2023-01-17T18:48:19.660Z","modified":"2023-01-17T18:48:19.820Z"},"maintainers":[{"name":"0kzh","email":"me@kelvinzhang.ca"}],"description":"babel plugin that emulates vite's import.meta.hot functionality","homepage":"https://github.com/OpenSourceRaidGuild/babel-vite#readme","keywords":["babel","vite","plugin","import","meta","hot"],"repository":{"type":"git","url":"git+https://github.com/OpenSourceRaidGuild/babel-vite.git"},"author":{"name":"Kelvin Zhang","email":"me@kelvinzhang.ca"},"bugs":{"url":"https://github.com/OpenSourceRaidGuild/babel-vite/issues"},"license":"MIT","readme":"# babel-plugin-transform-vite-meta-hot\n\n<!-- prettier-ignore-start -->\n[![Build Status](https://img.shields.io/github/workflow/status/OpenSourceRaidGuild/babel-vite/validate?logo=github&style=flat-square)](https://github.com/OpenSourceRaidGuild/babel-vite/actions?query=workflow%3Avalidate)\n[![codecov](https://img.shields.io/codecov/c/github/OpenSourceRaidGuild/babel-vite.svg?style=flat-square)](https://codecov.io/gh/OpenSourceRaidGuild/babel-vite)\n[![version](https://img.shields.io/npm/v/babel-plugin-transform-vite-meta-hot.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-vite-meta-hot)\n[![downloads](https://img.shields.io/npm/dm/babel-plugin-transform-vite-meta-hot.svg?style=flat-square)](http://www.npmtrends.com/babel-plugin-transform-vite-meta-hot)\n[![MIT License](https://img.shields.io/npm/l/babel-plugin-transform-vite-meta-hot.svg?style=flat-square)](https://github.com/OpenSourceRaidGuild/babel-vite/blob/master/LICENSE.md)\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![Code of Conduct](https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square)](https://github.com/OpenSourceRaidGuild/babel-vite/blob/master/CODE_OF_CONDUCT.md)\n[![Discord](https://img.shields.io/discord/808364903822917662.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square)](https://discord.gg/grS89HWeYh)\n\n[![Watch on GitHub](https://img.shields.io/github/watchers/OpenSourceRaidGuild/babel-vite.svg?style=social)](https://github.com/OpenSourceRaidGuild/babel-vite/watchers)\n[![Star on GitHub](https://img.shields.io/github/stars/OpenSourceRaidGuild/babel-vite.svg?style=social)](https://github.com/OpenSourceRaidGuild/babel-vite/stargazers)\n[![Tweet](https://img.shields.io/twitter/url/https/github.com/OpenSourceRaidGuild/babel-vite.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20babel-plugin-transform-vite-meta-hot%20by%20OpenSourceRaidGuild%20https%3A%2F%2Fgithub.com%2FOpenSourceRaidGuild%2Fbabel-vite%20%F0%9F%91%8D)\n<!-- prettier-ignore-end -->\n\n> Please note: this plugin is intended to provide an approximation of some of Vite specific\n> transformations when running the code in non-Vite environment, for example, running tests with a\n> NodeJS based test runner.\n>\n> **The functionality within these transformations should not be relied upon in production.**\n\n## Example\n\n**In**\n\n```\nif (import.meta.hot) {\n  import.meta.hot.accept(callback);\n}\n```\n\n**Out**\n\n```\nif (module.hot) {\n  module.hot.accept(callback);\n}\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-vite-meta-hot\n```\n\n## Usage\n\n### With a configuration file (Recommended)\n\n```json\n{\n  \"plugins\": [\"babel-plugin-transform-vite-meta-hot\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins babel-plugin-transform-vite-meta-hot script.js\n```\n\n### Via Node API\n\n```javascript\nrequire('@babel/core').transformSync('code', {\n  plugins: ['babel-plugin-transform-vite-meta-hot']\n})\n```\n","readmeFilename":"README.md"}