Skip to content

[tsconfig] Revisit defaults #21

@kirbysayshi

Description

@kirbysayshi

Currently, the target in tsconfig is either es5 or es6, depending on if using the app or lib config. However both of these targets will transpile async/await to tslib's __awaiter fallback (similar to regenerator).

We should be publishing packages that assume a modern, somewhat-evergreen environment, and assume that a library or app is transpiling to older targets if they need to support those targets.

As brought up by earlier discussions when the service config was added, the configs and what should be the default need to be revisited. These options include: target, sourceMap, declaration. Especially now that we have web-scripts in play, which basically handles these.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions