Skip to content

Shperung/babel-plugin-transform-import-meta-empty

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.3%
  • JavaScript 7.7%