Babel plugin to rewrite import.meta for bundled usage
-
Updated
Aug 5, 2022 - JavaScript
Babel plugin to rewrite import.meta for bundled usage
Use Vite env variables inside Node scripts and test runners via a require hook.
Handy function to handle import.meta
🎯 Standard synchronous import.meta.resolve() for anywhere
Example of using import.meta for loading css
[Deprecated] please use dotenv-webpack plugin instead. Similar to webpack.EnvironmentPlugin, but for the import.meta.env object.
Add a description, image, and links to the import-meta topic page so that developers can more easily learn about it.
To associate your repository with the import-meta topic, visit your repo's landing page and select "manage topics."