From 09a70e37172cbec62fe3139373ee72a0212eeb52 Mon Sep 17 00:00:00 2001
From: Johann-S <johann.servoire@gmail.com>
Date: Mon, 15 Apr 2019 10:40:49 +0200
Subject: [PATCH] remove custom browserlist for our esm build (#28642)

---
 build/rollup.config.js | 48 +++++++++++-------------------------------
 package.json           |  4 ++--
 2 files changed, 14 insertions(+), 38 deletions(-)

diff --git a/build/rollup.config.js b/build/rollup.config.js
index bb6b425af4..9a5e13f393 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -11,42 +11,18 @@ const ESM = process.env.ESM === 'true'
 let fileDest = `bootstrap${ESM ? '.esm' : ''}`
 const external = ['popper.js']
 const plugins = [
-  babel(ESM ?
-    {
-      // Only transpile our source code
-      exclude: 'node_modules/**',
-      babelrc: false,
-      presets: [
-        [
-          '@babel/env',
-          {
-            loose: true,
-            modules: false,
-            targets: {
-              browsers: [
-                'Chrome >= 60',
-                'Safari >= 10.1',
-                'iOS >= 10.3',
-                'Firefox >= 54',
-                'Edge >= 15'
-              ]
-            }
-          }
-        ]
-      ]
-    } :
-    {
-    // Only transpile our source code
-      exclude: 'node_modules/**',
-      // Include only required helpers
-      externalHelpersWhitelist: [
-        'defineProperties',
-        'createClass',
-        'inheritsLoose',
-        'defineProperty',
-        'objectSpread'
-      ]
-    })
+  babel({
+  // Only transpile our source code
+    exclude: 'node_modules/**',
+    // Include only required helpers
+    externalHelpersWhitelist: [
+      'defineProperties',
+      'createClass',
+      'inheritsLoose',
+      'defineProperty',
+      'objectSpread'
+    ]
+  })
 ]
 const globals = {
   'popper.js': 'Popper'
diff --git a/package.json b/package.json
index 1fed4c6cd3..c71001a6fd 100644
--- a/package.json
+++ b/package.json
@@ -197,11 +197,11 @@
     },
     {
       "path": "./dist/js/bootstrap.esm.js",
-      "maxSize": "27 kB"
+      "maxSize": "28 kB"
     },
     {
       "path": "./dist/js/bootstrap.esm.min.js",
-      "maxSize": "18 kB"
+      "maxSize": "19 kB"
     },
     {
       "path": "./dist/js/bootstrap.js",
-- 
GitLab