From 8ab6ff2e53021667cc4ebc3bc6653011f776e162 Mon Sep 17 00:00:00 2001 From: wetinee Date: Thu, 9 Jan 2020 12:56:26 +0800 Subject: [PATCH] set shipped proposals true --- packages/babel-preset-env/data/shipped-proposals.js | 4 +++- .../debug/entry-corejs3-stable-samsung-8.2/stdout.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/babel-preset-env/data/shipped-proposals.js b/packages/babel-preset-env/data/shipped-proposals.js index e92b8fe4e2b6..2376b388482a 100644 --- a/packages/babel-preset-env/data/shipped-proposals.js +++ b/packages/babel-preset-env/data/shipped-proposals.js @@ -2,7 +2,9 @@ // These mappings represent the syntax proposals that have been // shipped by browsers, and are enabled by the `shippedProposals` option. -const proposalPlugins = {}; +const proposalPlugins = { + "proposal-numeric-separator": true +}; // use intermediary object to enforce alphabetical key order const pluginSyntaxObject = { diff --git a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt index a7f6f6ce8925..278359842c77 100644 --- a/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt +++ b/packages/babel-preset-env/test/fixtures/debug/entry-corejs3-stable-samsung-8.2/stdout.txt @@ -13,6 +13,7 @@ Using plugins: proposal-json-strings { "samsung":"8.2" } proposal-optional-catch-binding { "samsung":"8.2" } syntax-async-generators { "samsung":"8.2" } + proposal-numeric-separator { "samsung":"8.2" } syntax-object-rest-spread { "samsung":"8.2" } proposal-unicode-property-regex { "samsung":"8.2" } transform-named-capturing-groups-regex { "samsung":"8.2" }