-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
@babel+preset-typescript+7.22.5.patch
76 lines (76 loc) · 2.68 KB
/
@babel+preset-typescript+7.22.5.patch
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
diff --git a/node_modules/@babel/preset-typescript/lib/index.js b/node_modules/@babel/preset-typescript/lib/index.js
index 04d056c..7bff534 100644
--- a/node_modules/@babel/preset-typescript/lib/index.js
+++ b/node_modules/@babel/preset-typescript/lib/index.js
@@ -18,7 +18,8 @@ function normalizeOptions(options = {}) {
let {
allowNamespaces = true,
jsxPragma,
- onlyRemoveTypeImports
+ onlyRemoveTypeImports,
+ yeetEmptyImportElisions
} = options;
const TopLevelOptions = {
ignoreExtensions: "ignoreExtensions",
@@ -27,6 +28,7 @@ function normalizeOptions(options = {}) {
jsxPragma: "jsxPragma",
jsxPragmaFrag: "jsxPragmaFrag",
onlyRemoveTypeImports: "onlyRemoveTypeImports",
+ yeetEmptyImportElisions: "yeetEmptyImportElisions",
optimizeConstEnums: "optimizeConstEnums",
allExtensions: "allExtensions",
isTSX: "isTSX"
@@ -54,6 +56,7 @@ function normalizeOptions(options = {}) {
jsxPragma,
jsxPragmaFrag,
onlyRemoveTypeImports,
+ yeetEmptyImportElisions,
optimizeConstEnums
};
{
@@ -74,6 +77,7 @@ var index = helperPluginUtils.declarePreset((api, opts) => {
jsxPragma,
jsxPragmaFrag,
onlyRemoveTypeImports,
+ yeetEmptyImportElisions,
optimizeConstEnums
} = normalizeOptions(opts);
const pluginOptions = disallowAmbiguousJSXLike => ({
@@ -83,6 +87,7 @@ var index = helperPluginUtils.declarePreset((api, opts) => {
jsxPragma,
jsxPragmaFrag,
onlyRemoveTypeImports,
+ yeetEmptyImportElisions,
optimizeConstEnums
});
const getPlugins = (isTSX, disallowAmbiguousJSXLike) => {
diff --git a/node_modules/@babel/preset-typescript/lib/normalize-options.js b/node_modules/@babel/preset-typescript/lib/normalize-options.js
index 37e394a..617cbf5 100644
--- a/node_modules/@babel/preset-typescript/lib/normalize-options.js
+++ b/node_modules/@babel/preset-typescript/lib/normalize-options.js
@@ -10,7 +10,8 @@ function normalizeOptions(options = {}) {
let {
allowNamespaces = true,
jsxPragma,
- onlyRemoveTypeImports
+ onlyRemoveTypeImports,
+ yeetEmptyImportElisions
} = options;
const TopLevelOptions = {
ignoreExtensions: "ignoreExtensions",
@@ -19,6 +20,7 @@ function normalizeOptions(options = {}) {
jsxPragma: "jsxPragma",
jsxPragmaFrag: "jsxPragmaFrag",
onlyRemoveTypeImports: "onlyRemoveTypeImports",
+ yeetEmptyImportElisions: "yeetEmptyImportElisions",
optimizeConstEnums: "optimizeConstEnums",
allExtensions: "allExtensions",
isTSX: "isTSX"
@@ -47,6 +49,7 @@ function normalizeOptions(options = {}) {
jsxPragma,
jsxPragmaFrag,
onlyRemoveTypeImports,
+ yeetEmptyImportElisions,
optimizeConstEnums
};
{