package ppx_platform
Build not checked
Platform-specific code for native and Melange builds
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppx_platform-0.2.0.tbz
sha256=3b63eb4fc72762bedb12b51f34b05976f096916ea886ea8f54dafe22474e276d
sha512=5acbd9de60cfd026ddd92078e5943d6f3081d4299ee3ba2e2194d11e5e6a6fc93d6b0166684109bc1fd9549334e73cd6951dda0e61199ab527194038083b345d
doc/CHANGES.html
Changes
0.2.0
- Add
NativeandMelangecases tomatch%platform/switch%platform.Server,Client,Runtime.ServerandRuntime.Clientstill work and can be mixed with the new cases. - Add
[@melange_only]/[@@melange_only],let%melange_onlyand[%melange_only ...], the new names of[@browser_only]/[@platform js]andbrowser_only. Native code gets amelange_onlyalert, notbrowser_only. - Add
[@native_only]/[@@native_only], the new name of[@platform native]. - The old names keep working in this release and will be removed in 1.0.0.
0.1.0
Initial release, extracted from browser_ppx in server-reason-react.
- Add
let%browser_only,%browser_onlyexpressions and the[@browser_only]attribute. - Add
[@platform js]and[@platform native]attributes. - Add
switch%platformwithServer/ClientandRuntime.Server/Runtime.Clientpatterns. - Add the
-jsdriver flag to preprocess for Melange. - Add
ppx_platform.runtime, with thePpx_platform_runtimemodule that the generated code calls.