Skip to content

Add flag to disable Javascript backend #3196

Description

@owickstrom

I'm writing an alternative VimL backend for PureScript based on the CoreFn dump produced by --dump-corefn. That is, I haven't forked the compiler codebase. There are two things with the regular purs compile command that would be nice to disable:

  • CommonJS module output
  • Checking/inclusion of <Module>.js files (foreign definitions)

Specifically the latter is of interest, as I don't want to write foreign definitions for Vim-specific things for the JS backend.

At a high level, this might be considered "disabling the entire JS backend", I'd say, so I'm not sure what would be a good name for a flag to disable it. Perhaps --no-codegen or --no-js-codegen. Anyway, I could have a stab at this and provide a PR if this seems reasonable.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions