一覧へ戻る
keithamus/rollup-plugin-inline-invariant(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 6
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 1
- 最終更新
- 2020/04/04
主要言語: JavaScript
If you use the invariant library, then this rollup plugin is the plugin for you!
This transforms any invariant() callsite to the native throw equivalent:
// Before invariant(foo, "Foo isnt available!")
// After if (!(foo)) { throw new Error("invariant: Foo isnt available!"); }