babel-plugin-transform-import-meta-empty
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i babel-plugin-transform-import-meta-empty

Weekly Downloads

37

Version

1.0.0

License

BSD

Unpacked Size

13 kB

Total Files

6

Last publish

Collaborators

  • shperung