Skip to content

--library option for inexecutable code #246

Open
@nyuichi

Description

@nyuichi

By the current design when jsx is passed no compiler options via command line arguments it compiles the code without emitting bootstrap code. This kind of behavior is pretty confusing especially for the case where compiling the same file many times in the terminal. To avoid the problem, we change jsx command in the following ways:

  1. warn or throw an error when compiler doesn't take any option.
  2. if you want to compile the code to create a shared (main function-free) js, you explicitly pass a compiler option --library.

--library is a very clear word for me but may not be for someone else. If you think --library sounds like an option to switch the external library path, any other ideas for the word is of course welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions