Function setupile

Generates a estree.Program that should be executed before executing any instrumented code. In the standalone mode, the setup code is bundled with the instrumented code and this function should not be used.

AranInputError If the configuration is invalid.

  • Parameters

    • Optionalconf: Partial<Config>

      Setup generation options.

    Returns Program<{}> & {
        sourceType: "script";
    }

    The setup script program. Can be passed to an estree code generator such as astring.