Skip to content

Consolidate switch%platform, browser_only and platform #187

@jchavarri

Description

@jchavarri

There's now a bit confusing situation:

  • browser_only extension
  • switch%platform which include Server and Client branches
  • platform which includes js and native options
  • server-reason-react.browser_ppx uses -js to discard stuff for (modes melange)

We could use React namings and semantics to make things easier for folks to understand.

Maybe we could do something like this?

  • Remove platform as it's covering the same functionality as browser_only
  • Rename browser_only to just client
  • Add server to cover the platform native case
  • Change switch%platform to switch%environment

So to summarize, we'd have:

  • switch%environment with Server and Client branches
  • let%client
  • let%server

Wdyt?


Edited by @davesnx added server-reason-react.browser_ppx` example

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions