From 50955d3675c28dbbd5393c52e972f2f8a2074241 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 25 Nov 2020 14:58:50 -0800 Subject: [PATCH 1/5] Clarify these warnings are for babel-preset-env. --- packages/babel-preset-env/src/normalize-options.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/babel-preset-env/src/normalize-options.js b/packages/babel-preset-env/src/normalize-options.js index 84ebf85300d0..41524d415443 100644 --- a/packages/babel-preset-env/src/normalize-options.js +++ b/packages/babel-preset-env/src/normalize-options.js @@ -160,6 +160,7 @@ export function normalizeCoreJSOption( if (useBuiltIns && corejs === undefined) { rawVersion = 2; console.warn( + "\n[babel-preset-env]" + "\nWARNING: We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + @@ -183,6 +184,7 @@ export function normalizeCoreJSOption( if (!useBuiltIns && version) { console.log( + "\n[babel-preset-env]" + "\nThe `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n", ); } From b1e81ac440bb092851aa219c78317b43c4f46235 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 25 Nov 2020 15:09:24 -0800 Subject: [PATCH 2/5] Fix lint. --- packages/babel-preset-env/src/normalize-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-preset-env/src/normalize-options.js b/packages/babel-preset-env/src/normalize-options.js index 41524d415443..448ec98ebca1 100644 --- a/packages/babel-preset-env/src/normalize-options.js +++ b/packages/babel-preset-env/src/normalize-options.js @@ -161,7 +161,7 @@ export function normalizeCoreJSOption( rawVersion = 2; console.warn( "\n[babel-preset-env]" + - "\nWARNING: We noticed you're using the `useBuiltIns` option without declaring a " + + "\nWARNING: We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + @@ -185,7 +185,7 @@ export function normalizeCoreJSOption( if (!useBuiltIns && version) { console.log( "\n[babel-preset-env]" + - "\nThe `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n", + "\nThe `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n", ); } From 112805518eddfd1b8437e638317c348a931f5d63 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 25 Nov 2020 15:30:56 -0800 Subject: [PATCH 3/5] Fix specs. --- packages/babel-preset-env/src/normalize-options.js | 4 +++- .../fixtures/debug/corejs-without-usebuiltins/stdout.txt | 1 + .../fixtures/debug/entry-no-corejs-no-import/stderr.txt | 6 +++++- .../debug/entry-no-corejs-shippedProposals/stderr.txt | 6 +++++- .../test/fixtures/debug/entry-no-corejs-uglify/stderr.txt | 6 +++++- .../test/fixtures/debug/entry-no-corejs/stderr.txt | 6 +++++- .../test/fixtures/debug/usage-no-corejs-1/stderr.txt | 7 +++++++ .../test/fixtures/debug/usage-no-corejs-2/stderr.txt | 4 ++++ .../test/fixtures/debug/usage-no-corejs-none-1/stderr.txt | 6 +++++- .../test/fixtures/debug/usage-no-corejs-none-2/stderr.txt | 6 +++++- 10 files changed, 45 insertions(+), 7 deletions(-) diff --git a/packages/babel-preset-env/src/normalize-options.js b/packages/babel-preset-env/src/normalize-options.js index 448ec98ebca1..9a247e459293 100644 --- a/packages/babel-preset-env/src/normalize-options.js +++ b/packages/babel-preset-env/src/normalize-options.js @@ -171,7 +171,9 @@ export function normalizeCoreJSOption( "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + - " yarn add core-js@2 yarn add core-js@3\n", + " yarn add core-js@2 yarn add core-js@3\n\n" + + "More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins\n" + + "More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs", ); } else if (typeof corejs === "object" && corejs !== null) { rawVersion = corejs.version; diff --git a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt index 4e9aa05982c7..495c333b3f90 100644 --- a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt @@ -1,3 +1,4 @@ +[babel-preset-env] The `corejs` option only has an effect when the `useBuiltIns` option is not `false` @babel/preset-env: `DEBUG` option diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt index d9061acb2c57..29d98d7c6140 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt @@ -1,6 +1,13 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 yarn add core-js@2 yarn add core-js@3 +<<<<<<< HEAD +======= + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs +>>>>>>> Fix specs. diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt index d9061acb2c57..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt index dbee5e8f3eb3..0b4e2b4459eb 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt @@ -1,6 +1,10 @@ +[babel-preset-env] WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: npm install --save core-js@2 npm install --save core-js@3 - yarn add core-js@2 yarn add core-js@3 \ No newline at end of file + yarn add core-js@2 yarn add core-js@3 + +More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins +More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs \ No newline at end of file From c0ac148ac119984e21efb2bb60ba2cdd069e1d8a Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 25 Nov 2020 15:36:08 -0800 Subject: [PATCH 4/5] Fix merge conflict. --- .../test/fixtures/debug/usage-no-corejs-1/stderr.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt index 29d98d7c6140..ca2edbeae669 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt @@ -5,9 +5,6 @@ You should also be sure that the version you pass to the `corejs` option matches npm install --save core-js@2 npm install --save core-js@3 yarn add core-js@2 yarn add core-js@3 -<<<<<<< HEAD -======= More info about useBuiltIns: https://babeljs.io/docs/en/babel-preset-env#usebuiltins More info about core-js: https://babeljs.io/docs/en/babel-preset-env#corejs ->>>>>>> Fix specs. From 8fd93bc8431b54b5529218022a12fee8b1fbae3a Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Mon, 30 Nov 2020 16:21:22 -0800 Subject: [PATCH 5/5] PR feedback. --- packages/babel-preset-env/src/normalize-options.js | 6 ++---- .../fixtures/debug/corejs-without-usebuiltins/stdout.txt | 3 +-- .../fixtures/debug/entry-no-corejs-no-import/stderr.txt | 3 +-- .../debug/entry-no-corejs-shippedProposals/stderr.txt | 3 +-- .../test/fixtures/debug/entry-no-corejs-uglify/stderr.txt | 3 +-- .../test/fixtures/debug/entry-no-corejs/stderr.txt | 3 +-- .../test/fixtures/debug/usage-no-corejs-1/stderr.txt | 3 +-- .../test/fixtures/debug/usage-no-corejs-2/stderr.txt | 3 +-- .../test/fixtures/debug/usage-no-corejs-none-1/stderr.txt | 3 +-- .../test/fixtures/debug/usage-no-corejs-none-2/stderr.txt | 3 +-- 10 files changed, 11 insertions(+), 22 deletions(-) diff --git a/packages/babel-preset-env/src/normalize-options.js b/packages/babel-preset-env/src/normalize-options.js index 9a247e459293..0f730afabaea 100644 --- a/packages/babel-preset-env/src/normalize-options.js +++ b/packages/babel-preset-env/src/normalize-options.js @@ -160,8 +160,7 @@ export function normalizeCoreJSOption( if (useBuiltIns && corejs === undefined) { rawVersion = 2; console.warn( - "\n[babel-preset-env]" + - "\nWARNING: We noticed you're using the `useBuiltIns` option without declaring a " + + "\nWARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + @@ -186,8 +185,7 @@ export function normalizeCoreJSOption( if (!useBuiltIns && version) { console.log( - "\n[babel-preset-env]" + - "\nThe `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n", + "\nWARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n", ); } diff --git a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt index 495c333b3f90..be9ded09f82e 100644 --- a/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/corejs-without-usebuiltins/stdout.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -The `corejs` option only has an effect when the `useBuiltIns` option is not `false` +WARNING (@babel/preset-env): The `corejs` option only has an effect when the `useBuiltIns` option is not `false` @babel/preset-env: `DEBUG` option diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-no-import/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-shippedProposals/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs-uglify/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-no-corejs/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt index ca2edbeae669..f7b27dd07f70 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-1/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-2/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-1/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: diff --git a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt index 0b4e2b4459eb..2bcc7b0c305b 100644 --- a/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt +++ b/packages/babel-preset-env/test/fixtures/debug/usage-no-corejs-none-2/stderr.txt @@ -1,5 +1,4 @@ -[babel-preset-env] -WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. +WARNING (@babel/preset-env): We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the `corejs` option. You should also be sure that the version you pass to the `corejs` option matches the version specified in your `package.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands: