BuilderIO / BuilderIO/mitosis

Angular output contains superflous global.d.ts

Open
#501 3 comments 0 reactions 0 assignees View on GitHub
angular cli
Dominant language
TypeScript
Stars
14.4k
Forks
671
PR merge metrics
No merged PRs in 30d

Description

### Currently

The Angular output includes a file `global.d.ts`, containing JavaScript output from a bundling process, starting with:

```
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
...
```

When this file is seen by Angular tooling (for example, Angular CLI), building the Angular app fails.

### Expected

Angular output should contain only the exact files/contents that are accepted by commonly used Angular tools - no superflous files.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Angular output generation that emits global.d.ts and reproduce the failure with Angular CLI. Done means the Angular output contains only files accepted by common Angular tooling, with no superfluous global.d.ts or bundling content.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.