flow-enums-runtime

Runtime to be use with the Flow Enums transform.

Usage no npm install needed!

<script type="module">
  import flowEnumsRuntime from 'https://cdn.skypack.dev/flow-enums-runtime';
</script>

README

flow-enums-runtime

This is the runtime used with the Flow Enums Babel transform.

Install this package in your regular dependencies, as it is required and used by the output of the Flow Enums transform at runtime.

Read more about how to enable Flow Enums in your project.

Requirements

This package requires support (either natively or through a polyfill) for Map and Array.prototype.values.

Support for WeakMap is suggested, but not required (will fall back to Map instead if not present).