File: 0009-Do-not-use-preset-env-option.patch

package info (click to toggle)
node-envinfo 7.11.0%2B~cs14.3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,304 kB
  • sloc: javascript: 2,756; makefile: 8
file content (39 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Wed, 8 Nov 2023 15:26:43 +0000
Subject: Do not use preset-env option

Avoid polyfill (not needed for debian) and option what could break

Forwarded: not-needed
---
 babel.config.js   | 3 ---
 webpack.config.js | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index bc93fa6..66d5b72 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -6,9 +6,6 @@ module.exports = {
       '@babel/preset-env',
       {
         modules: 'commonjs',
-        targets: "defaults",
-        useBuiltIns: 'usage',
-        corejs: 3,
       },
     ],
   ],
diff --git a/webpack.config.js b/webpack.config.js
index d2a9d53..b98ca10 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -26,7 +26,7 @@ module.exports = {
           loader : 'babel-loader',
           options: {
             presets: [
-              ['@babel/preset-env', { targets: "defaults" , "useBuiltIns": 'usage', "corejs": 3}]
+              ['@babel/preset-env']
             ],
           },
         },