1.0.0 • Published 23 days ago

babel-plugin-transform-import-meta-empty v1.0.0

Weekly downloads
-
License
BSD
Repository
github
Last release
23 days ago

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

1.0.0

23 days ago