Skip to content

Transforming CompilerHost? #185

@vpzomtrrfrt

Description

@vpzomtrrfrt

I'm trying to a write a plugin that simulates the existence of extra files. The most obvious way to do that seems to be overriding the methods on the CompilerHost object, and that does work for a one-shot build. However, running with --watch appears to start using the created CompilerHost long before the Program is created, so the non-existence of my virtual files has already been cached by the time the plugins run.

Would it be possible to support a new plugin type that can run early enough to transform CompilerHost?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions