Unverified Commit 0baafc72 authored by Vũ Văn Dũng's avatar Vũ Văn Dũng Committed by GitHub

Improve grammar of removable Babel config warning (#55088)



The current warning is

> It looks like there is a custom Babel configuration can be removed .

which in this PR is updated to

> It looks like there is a custom Babel configuration that can be removed.

---

[Original bug found by @protehnica on the Next.js Discord:](https://discord.com/channels/752553802359505017/1148942305194152056)

> On my server I used to have a `.babelrc` file to disable `@next/swc`, because it wouldn't run on CentOS 7.
> Apparently this is no longer needed now in Next.js 13, but the message warning users about it looks extremely unprofessional.
> 
> > "It looks like there is a custom Babel configuration can be removed ."
> 
> Not only is the grammar off, there's also a weird space before the final dot.
> Can someone who's already working on the codebase submit a pull request?
> I would love to do it myself, but I wouldn't know where to start.
> 
> The exact file in the repo containing the message string is:
> ```next.js/packages/next/src/build/babel/loader/get-config.ts```
parent 82d1b577
...@@ -233,7 +233,7 @@ function checkCustomBabelConfigDeprecation( ...@@ -233,7 +233,7 @@ function checkCustomBabelConfigDeprecation(
if (isPresetReadyToDeprecate && unsupportedPlugins.length === 0) { if (isPresetReadyToDeprecate && unsupportedPlugins.length === 0) {
Log.warn( Log.warn(
`It looks like there is a custom Babel configuration can be removed ${ `It looks like there is a custom Babel configuration that can be removed${
pluginReasons.length > 0 ? ':' : '.' pluginReasons.length > 0 ? ':' : '.'
}` }`
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment