This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

babel-plugin-transform-invariant-location

1.0.1 • Public • Published

transform-invariant-location

A Babel plugin to annotate Flow invariant() calls with an additional string argument detailing the current file and line number. This is useful to track down exceptions that are raised by invariant() in minified bundles at runtime.

Before:

invariant(foo)
invariant(foo, "foo is missing")

After:

invariant(foo, "path/to/source.js:42")
invariant(foo, "foo is missing -- path/to/source.js:42")

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i babel-plugin-transform-invariant-location

Weekly Downloads

63

Version

1.0.1

License

MIT

Unpacked Size

3.07 kB

Total Files

5

Last publish

Collaborators

  • koddsson
  • mislav