package ppx_platform

Build not checked
  1. Overview
  2. Docs
On This Page
  1. 0.1.0
Platform-specific code for native and Melange builds

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppx_platform-0.1.0.tbz
sha256=bb9987a34d52ffbc501b6c86a759dfe0078a92791bf6424f7c5fca4520289906
sha512=41ad7ffb121061580f50cbcd225c7493468b7ba37008dcdc2917d9ba3299069311c68a32022d311af808c24451335c6ab85be06ddeccdc68011de4e9277c4d8f

doc/CHANGES.html

Changes

0.1.0

Initial release, extracted from browser_ppx in server-reason-react.

  • Add let%browser_only, %browser_only expressions and the [@browser_only] attribute.
  • Add [@platform js] and [@platform native] attributes.
  • Add switch%platform with Server/Client and Runtime.Server/Runtime.Client patterns.
  • Add the -js driver flag to preprocess for Melange.
  • Add ppx_platform.runtime, with the Ppx_platform_runtime module that the generated code calls.