Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 654 Bytes

browser-support-polyfills.mdx

File metadata and controls

18 lines (13 loc) · 654 Bytes
title description canonical
Browser Support & Polyfills
Note on browser support in ReScript
/docs/manual/v11.0.0/browser-support-polyfills

Browser Support & Polyfills

ReScript compiles to JavaScript ES5, with the exception of optionally allowing to compile to ES6's module import & export.

For old browsers, you also need to polyfill TypedArray. The following standard library functions require it:

  • Int64.float_of_bits
  • Int64.bits_of_float
  • Int32.float_of_bits
  • Int32.bits_of_float

If you don't use these functions, you're fine. Otherwise, it'll be a runtime failure.