Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Enable building the application with the ESM build system - #1203

Open
clydin wants to merge 2 commits into
angular:mainfrom
clydin:esbuild
Open

clydin wants to merge 2 commits into
angular:mainfrom
clydin:esbuild

Conversation

@clydin

@clydin clydin commented Apr 27, 2023

Copy link
Copy Markdown
Member

No description provided.

@clydin
clydin marked this pull request as ready for review April 27, 2023 19:31
@clydin clydin changed the title Enabled building the application with the ESM build system Apr 27, 2023

@crisbeto crisbeto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

clydin added 2 commits May 18, 2023 15:59
The `normalize-path` package was previously imported via a namespace import.
However, the ECMAScript specification returns an exotic namespace object from
namespace imports which can never be a function. As a result a namespace import
can not be called. Since the import is directly called it must be imported As
a default import to be ECMAScript compliant. TypeScript by default allows the
non-compliant form even though it can result in runtime errors. The TypeScript
`esModuleInterop` option (recommended by TypeScript) causes TypeScript to error
on non-compliant usage and ensures the correct code is emitted so that the code
can be executed and/or bundled in an ESM environment.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants