babel-plugin-transform-import-meta-empty
v1.0.0
Published
Transforms import.meta for nodejs environments
Downloads
376
Readme
babel-plugin-transform-import-meta-empty
It's possible to replace import.meta.url
on an empty string. It can help in a react-native environment
Installation
Install this package
npm install --save-dev babel-plugin-transform-import-meta-empty
{
"plugins": [
["babel-plugin-transform-import-meta-empty", { "module": "empty" }]
]
}
console.log(import.meta.url);
With this
console.log("");
Credits
Based on a previous project "babel-plugin-import-meta" by The Polymer Authors