Skip to content

Use browserslist in package.json instead of config/targets.js - #293

Open
aklkv wants to merge 1 commit into
ember-cli:mainfrom
aklkv:feat/browsers-list-config
Open

Use browserslist in package.json instead of config/targets.js#293
aklkv wants to merge 1 commit into
ember-cli:mainfrom
aklkv:feat/browsers-list-config

Conversation

@aklkv

@aklkv aklkv commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

fixes: #282

@mansona

mansona commented Jun 8, 2026

Copy link
Copy Markdown
Member

I have a slight inkling that this should probably be a deprecation if we're going down this route 🤔 essentially we would need to make sure that people transition to the new thing, make decisions about errors that we throw if someone has both (Because of a newly generated file during an ember-cli-update) etc.

thoughts?

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

a deprecation for something like this could come later tho, if all our tooling already supports the common-since-forever-way-of-doing-things, we can move to that without process (especially since this only affects new or upgrading projects)

make decisions about errors that we throw if someone has both (Because of a newly generated file during an ember-cli-update) etc.

having both isn't a problem tho -- but we can do an eslint check for this -- our default eslint config needs to be concerned with the package.json already (I don't know that it is), but a rule that checks for one or the other can say not to use both (and if we ship that as an optional rule in our lint plugin, we can lump it in the with the RFC for eslint-plugin-ember v14 that we put up yesterday)

NullVoxPopuli
NullVoxPopuli previously approved these changes Aug 5, 2026
@NullVoxPopuli

Copy link
Copy Markdown
Contributor

Approved, but not merged, because while the blueprint can do what it wants, more or less, it "would be nice", to have a way to tell folks (via eslint-plugin-ember?) that they should ditch their config/targets

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

If another team member wants to merge this as is, I'm good with that, too

@NullVoxPopuli

NullVoxPopuli commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

From Tooling review, some tasks needed:

@NullVoxPopuli NullVoxPopuli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

see comment

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.

use .browserslistrc instead of most likely dead files/config/targets.js

3 participants