Skip to content

Add js-options field so that user-defined options can be passed to javascript preprocessor #10721

@Swordlash

Description

@Swordlash

Describe the feature request
See the GHC ticket and description of the issue: https://gitlab.haskell.org/ghc/ghc/-/issues/25632#note_602729

There seems to be currently no way to pass JS CPP options for js-sources, like defining your own macros.

Additional context
This would enable things like TRACE flags in libraries that conditionally compile logging directives, for instance.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions