Skip to content

Alternatives to the old createProgram? #4618

Open
@ilteoood

Description

@ilteoood

Vue - Official extension or vue-tsc version

2.0.0

VSCode version

Vue version

TypeScript version

=5.0.0

System Info

No response

Steps to reproduce

Try to use the createProgram API, available in version 1.

What is expected?

On module federation, we used to use the createProgram API of vue-tsc in order to create a TypeScript program to generate the federated modules: https://github.com/module-federation/core/blob/main/packages/native-federation-typescript/src/lib/typeScriptCompiler.ts#L108.
As I can see in this PR: #3795, the API has been removed without a clear alternative to invoke the compiler programmatically.

I don't want to invoke the CLI to do basic operations I was doing before without any issue. Is there an alternative route I can take, or is there a chance to bring back the old API?

What is actually happening?

Can't programmatically create a vue-tsc program anymore

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions