Skip to content

Hardcoded path for entrypoint in builder.ts #1066

@parasharsh

Description

@parasharsh

With what library do you have an issue?

native-federation

Reproduction of the bug/regression with instructions

builder.ts hardcodes the path for entry point with below statement. This creates the issue if the structure of the project is different. For ex if tsconfig is at src level then then the path becomes src/src/main.ts which is incorrect.

const entryPoint = path.join(path.dirname(options.tsConfig), 'src/main.ts');

Expected behavior

Consumer should be to pass the entry point as a configuration.

Versions of Native/Module Federation, Angular, Node, Browser, and operating system

Angular 21 with Native Federation 21

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions