Skip to content

refactor(compiler-cli): avoid naming conflict with built-in global variable#54333

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:import-name-conflict
Closed

refactor(compiler-cli): avoid naming conflict with built-in global variable#54333
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:import-name-conflict

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 8, 2024

The import of module can conflict with the native global variable called module and can break some internal tests. These switch to only importing the function we need.

…riable

The import of `module` can conflict with the native global variable called `module` and can break some internal tests. These switch to only importing the function we need.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Feb 8, 2024
@crisbeto crisbeto requested a review from devversion February 8, 2024 11:38
@ngbot ngbot bot modified the milestone: Backlog Feb 8, 2024
@devversion
Copy link
Member

Note: That default imports are necessary/better for the ESM/CJS interop, but I think it works here because in ESM, NodeJS will expose module as an ES module.

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 8, 2024
jessicajaniuk pushed a commit that referenced this pull request Feb 8, 2024
…riable (#54333)

The import of `module` can conflict with the native global variable called `module` and can break some internal tests. These switch to only importing the function we need.

PR Close #54333
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit 9c2bad9.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants