Skip to content

[Ember] set "target" to ESNext#249

Open
NullVoxPopuli wants to merge 1 commit into
tsconfig:mainfrom
NullVoxPopuli:patch-2
Open

[Ember] set "target" to ESNext#249
NullVoxPopuli wants to merge 1 commit into
tsconfig:mainfrom
NullVoxPopuli:patch-2

Conversation

@NullVoxPopuli

@NullVoxPopuli NullVoxPopuli commented Feb 1, 2024

Copy link
Copy Markdown
Contributor

I noticed in a project: I didn't have access to Array.prototype.toSpliced, which landed in TS 5.2, so this should help others with that problem.

@orta

orta commented Feb 4, 2024

Copy link
Copy Markdown
Member

I'd be careful with this one, 'esnext' implies always being bleeding edge and that's not really the right thing to be recommending when making a base like this

@NullVoxPopuli

Copy link
Copy Markdown
Contributor Author

What's an example of that backfiring?

@orta

orta commented Feb 4, 2024

Copy link
Copy Markdown
Member

The browser/js runtime does not have function that the types claim to have and you get unexpected crashes - I assume for ember target is based on what they declare as their minimum support window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants