Skip to content

Can __export emitter be controlled by emitEmitHelpers compile option? #10905

Closed as not planned
@meenie

Description

@meenie

I'm trying to achieve 100% code coverage and the function:

function __export(m) {
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}

is added in every file that does something like export * from './blah'.

Can that code be controlled by the compilerOptions.emitEmitHelpers flag? Then it can be added to https://github.com/ngParty/ts-helpers and code coverage can go to 100% :).

I'm using https://github.com/hapijs/lab and it reports this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions