@alloy-js/json 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alloy-js/json",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -15,18 +15,18 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "pathe": "^1.1.2",
18
- "@alloy-js/core": "~0.6.0"
18
+ "@alloy-js/core": "~0.8.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.24.7",
22
22
  "@babel/preset-typescript": "^7.24.7",
23
23
  "@microsoft/api-extractor": "^7.47.7",
24
- "@rollup/plugin-babel": "^6.0.4",
25
24
  "@rollup/plugin-typescript": "^11.1.6",
26
25
  "concurrently": "^8.2.2",
27
26
  "typescript": "^5.7.3",
28
27
  "vitest": "^3.0.4",
29
- "@alloy-js/babel-preset": "~0.2.0"
28
+ "@alloy-js/babel-preset": "~0.2.0",
29
+ "@alloy-js/rollup-plugin": "~0.1.0"
30
30
  },
31
31
  "type": "module",
32
32
  "scripts": {
@@ -15,10 +15,11 @@ import { createJsonOutputSymbol } from "../symbols/json-symbol.js";
15
15
  import { JsonValue } from "./JsonValue.jsx";
16
16
 
17
17
  export interface JsonArrayPropsBase {
18
- /** The refkey for the JSON array. When provided, this value can be referenced
19
- * elsewhere via this refkey.
18
+ /**
19
+ * The refkey or array of refkeys for the JSON array. When provided, this
20
+ * value can be referenced elsewhere via this refkey.
20
21
  **/
21
- refkey?: Refkey;
22
+ refkey?: Refkey | Refkey[];
22
23
  }
23
24
 
24
25
  /**
@@ -61,7 +62,7 @@ export function JsonArray(props: JsonArrayProps) {
61
62
  const binder = memberSymbol.binder;
62
63
  binder.addStaticMembersToSymbol(memberSymbol);
63
64
  if (props.refkey) {
64
- memberSymbol.refkey = props.refkey;
65
+ memberSymbol.refkeys = [props.refkey].flat();
65
66
  }
66
67
 
67
68
  if (!("jsValue" in props)) {
@@ -69,7 +70,7 @@ export function JsonArray(props: JsonArrayProps) {
69
70
  <MemberScope owner={memberSymbol}>
70
71
  <group>
71
72
  [
72
- <Indent break="soft" trailingBreak>
73
+ <Indent softline trailingBreak>
73
74
  <List comma line>
74
75
  {props.children}
75
76
  </List>
@@ -86,7 +87,7 @@ export function JsonArray(props: JsonArrayProps) {
86
87
  <MemberScope owner={memberSymbol}>
87
88
  <group>
88
89
  [
89
- <Indent break="soft" trailingBreak>
90
+ <Indent softline trailingBreak>
90
91
  <For each={jsValue} comma line>
91
92
  {(value) => <JsonArrayElement jsValue={value} />}
92
93
  </For>
@@ -15,10 +15,12 @@ import { createJsonOutputSymbol } from "../symbols/json-symbol.js";
15
15
  import { JsonValue } from "./JsonValue.jsx";
16
16
 
17
17
  export interface JsonObjectPropsBase {
18
- /** The refkey for the JSON array. When provided, this value can be referenced
19
- * elsewhere via this refkey.
18
+ /**
19
+ * The refkey or array of refkeys for the JSON object. When provided, this
20
+ * value can be referenced elsewhere via this refkey.
20
21
  **/
21
- refkey?: Refkey;
22
+ refkey?: Refkey | Refkey[];
23
+
22
24
  style?: { concise?: boolean };
23
25
  }
24
26
 
@@ -65,7 +67,7 @@ export function JsonObject(props: JsonObjectProps) {
65
67
  const binder = memberSymbol.binder;
66
68
  binder.addStaticMembersToSymbol(memberSymbol);
67
69
  if (props.refkey) {
68
- memberSymbol.refkey = props.refkey;
70
+ memberSymbol.refkeys = [props.refkey].flat();
69
71
  }
70
72
 
71
73
  if (!("jsValue" in props)) {
@@ -73,7 +75,11 @@ export function JsonObject(props: JsonObjectProps) {
73
75
  <MemberScope owner={memberSymbol}>
74
76
  <group>
75
77
  {"{"}
76
- <Indent break={props.style?.concise ? "soft" : "hard"} trailingBreak>
78
+ <Indent
79
+ softline={!!props.style?.concise}
80
+ hardline={!props.style?.concise}
81
+ trailingBreak
82
+ >
77
83
  <List comma softline>
78
84
  {props.children}
79
85
  </List>
@@ -101,7 +107,11 @@ export function JsonObject(props: JsonObjectProps) {
101
107
  <MemberScope owner={memberSymbol}>
102
108
  <group>
103
109
  {"{"}
104
- <Indent break={props.style?.concise ? "soft" : "hard"} trailingBreak>
110
+ <Indent
111
+ softline={!!props.style?.concise}
112
+ hardline={!props.style?.concise}
113
+ trailingBreak
114
+ >
105
115
  <For each={entries} comma softline>
106
116
  {([name, value]) => (
107
117
  <JsonObjectProperty name={name} jsValue={value} />
@@ -4,10 +4,10 @@ import { JsonObject } from "./JsonObject.jsx";
4
4
 
5
5
  export interface JsonValueProps {
6
6
  /**
7
- * The refkey for the JSON value. When provided, this value can be referenced
8
- * elsewhere via this refkey.
7
+ * The refkey or array of refkeys for the JSON value. When provided, this
8
+ * value can be referenced elsewhere via this refkey.
9
9
  **/
10
- refkey?: Refkey;
10
+ refkey?: Refkey | Refkey[];
11
11
 
12
12
  /**
13
13
  * The JS value to serialize to JSON. When provided, thi
@@ -23,18 +23,19 @@ export interface JsonValueProps {
23
23
  * appropriate.
24
24
  */
25
25
  export function JsonValue(props: JsonValueProps) {
26
+ const refkeys = [props.refkey ?? []].flat();
26
27
  if (props.jsValue === null) {
27
- setMemberRefkey(props.refkey);
28
+ setMemberRefkey(refkeys);
28
29
  return "null";
29
30
  }
30
31
 
31
32
  if (typeof props.jsValue === "number" || typeof props.jsValue === "boolean") {
32
- setMemberRefkey(props.refkey);
33
+ setMemberRefkey(refkeys);
33
34
  return String(props.jsValue);
34
35
  }
35
36
 
36
37
  if (typeof props.jsValue === "string") {
37
- setMemberRefkey(props.refkey);
38
+ setMemberRefkey(refkeys);
38
39
  return `"${props.jsValue}"`;
39
40
  }
40
41
 
@@ -49,11 +50,12 @@ export function JsonValue(props: JsonValueProps) {
49
50
  throw new Error("Cannot emit js value with type of " + typeof props.jsValue);
50
51
  }
51
52
 
52
- function setMemberRefkey(key?: Refkey) {
53
- if (!key) return;
53
+ function setMemberRefkey(keys: Refkey[]) {
54
+ if (keys.length === 0) return;
54
55
  const member = useMemberDeclaration();
55
56
  if (!member) {
56
57
  throw new Error("Missing member declaration.");
57
58
  }
58
- member.refkey = key;
59
+
60
+ member.refkeys = keys;
59
61
  }
package/temp/api.json CHANGED
@@ -282,7 +282,7 @@
282
282
  {
283
283
  "kind": "Function",
284
284
  "canonicalReference": "@alloy-js/json!JsonArray:function(1)",
285
- "docComment": "/**\n * Create a JSON Array. You can provide children, or else pass a JS value that will be serialized to JSON.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberScopeContext:variable)}\n */\n",
285
+ "docComment": "/**\n * Create a JSON Array. You can provide children, or else pass a JS value that\n * will be serialized to JSON.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberScopeContext:variable)}\n */\n",
286
286
  "excerptTokens": [
287
287
  {
288
288
  "kind": "Content",
@@ -329,7 +329,7 @@
329
329
  {
330
330
  "kind": "Function",
331
331
  "canonicalReference": "@alloy-js/json!JsonArrayElement:function(1)",
332
- "docComment": "/**\n * Create a JSON Array element. This component should be used inside of a {@link JsonArray} component. Can either be provided `children`, or a JS value which will be serialized to JSON.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
332
+ "docComment": "/**\n * Create a JSON Array element. This component should be used inside of a\n * {@link JsonArray} component. Can either be provided `children`, or a JS\n * value which will be serialized to JSON.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
333
333
  "excerptTokens": [
334
334
  {
335
335
  "kind": "Content",
@@ -458,7 +458,7 @@
458
458
  {
459
459
  "kind": "Interface",
460
460
  "canonicalReference": "@alloy-js/json!JsonArrayElementPropsWithJsValue:interface",
461
- "docComment": "/**\n * Create a JSON Array element by providing a JS value that will be serialized to JSON.\n */\n",
461
+ "docComment": "/**\n * Create a JSON Array element by providing a JS value that will be serialized\n * to JSON.\n */\n",
462
462
  "excerptTokens": [
463
463
  {
464
464
  "kind": "Content",
@@ -554,7 +554,7 @@
554
554
  {
555
555
  "kind": "PropertySignature",
556
556
  "canonicalReference": "@alloy-js/json!JsonArrayPropsBase#refkey:member",
557
- "docComment": "/**\n * The refkey for the JSON array. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
557
+ "docComment": "/**\n * The refkey or array of refkeys for the JSON array. When provided, this\n * value can be referenced elsewhere via this refkey.\n */\n",
558
558
  "excerptTokens": [
559
559
  {
560
560
  "kind": "Content",
@@ -565,6 +565,19 @@
565
565
  "text": "Refkey",
566
566
  "canonicalReference": "@alloy-js/core!Refkey:type"
567
567
  },
568
+ {
569
+ "kind": "Content",
570
+ "text": " | "
571
+ },
572
+ {
573
+ "kind": "Reference",
574
+ "text": "Refkey",
575
+ "canonicalReference": "@alloy-js/core!Refkey:type"
576
+ },
577
+ {
578
+ "kind": "Content",
579
+ "text": "[]"
580
+ },
568
581
  {
569
582
  "kind": "Content",
570
583
  "text": ";"
@@ -576,7 +589,7 @@
576
589
  "name": "refkey",
577
590
  "propertyTypeTokenRange": {
578
591
  "startIndex": 1,
579
- "endIndex": 2
592
+ "endIndex": 5
580
593
  }
581
594
  }
582
595
  ],
@@ -585,7 +598,7 @@
585
598
  {
586
599
  "kind": "Interface",
587
600
  "canonicalReference": "@alloy-js/json!JsonArrayPropsWithChildren:interface",
588
- "docComment": "/**\n * Create a JSON Array by providing the children. To create an array element, see {@link JsonArrayElement}.\n */\n",
601
+ "docComment": "/**\n * Create a JSON Array by providing the children. To create an array element,\n * see {@link JsonArrayElement}.\n */\n",
589
602
  "excerptTokens": [
590
603
  {
591
604
  "kind": "Content",
@@ -609,7 +622,7 @@
609
622
  {
610
623
  "kind": "PropertySignature",
611
624
  "canonicalReference": "@alloy-js/json!JsonArrayPropsWithChildren#children:member",
612
- "docComment": "/**\n * The contents of the JSON Array. Likely to contain {@link JsonArrayElement} components.\n */\n",
625
+ "docComment": "/**\n * The contents of the JSON Array. Likely to contain {@link JsonArrayElement}\n * components.\n */\n",
613
626
  "excerptTokens": [
614
627
  {
615
628
  "kind": "Content",
@@ -804,7 +817,7 @@
804
817
  {
805
818
  "kind": "Variable",
806
819
  "canonicalReference": "@alloy-js/json!JsonFileContext:var",
807
- "docComment": "/**\n * Provides information about the current JSON source file. This context is used to allow references between JSON files.\n */\n",
820
+ "docComment": "/**\n * Provides information about the current JSON source file. This context is used\n * to allow references between JSON files.\n */\n",
808
821
  "excerptTokens": [
809
822
  {
810
823
  "kind": "Content",
@@ -841,7 +854,7 @@
841
854
  {
842
855
  "kind": "Function",
843
856
  "canonicalReference": "@alloy-js/json!JsonObject:function(1)",
844
- "docComment": "/**\n * Create a JSON Object. An object can be created by providing a JS object value which will be serialized to JSON. Else, you can provide children that comprise the object's JSON representation.\n *\n * @see\n *\n * {@link @alloy-js/core#MemberScopeContext}\n */\n",
857
+ "docComment": "/**\n * Create a JSON Object. An object can be created by providing a JS object\n * value which will be serialized to JSON. Else, you can provide children that\n * comprise the object's JSON representation.\n *\n * @see\n *\n * {@link @alloy-js/core#MemberScopeContext}\n */\n",
845
858
  "excerptTokens": [
846
859
  {
847
860
  "kind": "Content",
@@ -888,7 +901,7 @@
888
901
  {
889
902
  "kind": "Function",
890
903
  "canonicalReference": "@alloy-js/json!JsonObjectProperty:function(1)",
891
- "docComment": "/**\n * Create a JSON object property. A property can be created by providing a JS property value or children that defines the value.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
904
+ "docComment": "/**\n * Create a JSON object property. A property can be created by providing a JS\n * property value or children that defines the value.\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n */\n",
892
905
  "excerptTokens": [
893
906
  {
894
907
  "kind": "Content",
@@ -986,7 +999,7 @@
986
999
  {
987
1000
  "kind": "PropertySignature",
988
1001
  "canonicalReference": "@alloy-js/json!JsonObjectPropsBase#refkey:member",
989
- "docComment": "/**\n * The refkey for the JSON array. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
1002
+ "docComment": "/**\n * The refkey or array of refkeys for the JSON object. When provided, this\n * value can be referenced elsewhere via this refkey.\n */\n",
990
1003
  "excerptTokens": [
991
1004
  {
992
1005
  "kind": "Content",
@@ -997,6 +1010,19 @@
997
1010
  "text": "Refkey",
998
1011
  "canonicalReference": "@alloy-js/core!Refkey:type"
999
1012
  },
1013
+ {
1014
+ "kind": "Content",
1015
+ "text": " | "
1016
+ },
1017
+ {
1018
+ "kind": "Reference",
1019
+ "text": "Refkey",
1020
+ "canonicalReference": "@alloy-js/core!Refkey:type"
1021
+ },
1022
+ {
1023
+ "kind": "Content",
1024
+ "text": "[]"
1025
+ },
1000
1026
  {
1001
1027
  "kind": "Content",
1002
1028
  "text": ";"
@@ -1008,7 +1034,7 @@
1008
1034
  "name": "refkey",
1009
1035
  "propertyTypeTokenRange": {
1010
1036
  "startIndex": 1,
1011
- "endIndex": 2
1037
+ "endIndex": 5
1012
1038
  }
1013
1039
  },
1014
1040
  {
@@ -1044,7 +1070,7 @@
1044
1070
  {
1045
1071
  "kind": "Interface",
1046
1072
  "canonicalReference": "@alloy-js/json!JsonObjectPropsWithChildren:interface",
1047
- "docComment": "/**\n * Create a JSON object by providing children that define the object's contents. The children should use the {@link JsonObjectProperty} component to define individual object properties.\n */\n",
1073
+ "docComment": "/**\n * Create a JSON object by providing children that define the object's contents.\n * The children should use the {@link JsonObjectProperty} component to define\n * individual object properties.\n */\n",
1048
1074
  "excerptTokens": [
1049
1075
  {
1050
1076
  "kind": "Content",
@@ -1068,7 +1094,7 @@
1068
1094
  {
1069
1095
  "kind": "PropertySignature",
1070
1096
  "canonicalReference": "@alloy-js/json!JsonObjectPropsWithChildren#children:member",
1071
- "docComment": "/**\n * The contents of the JSON object. Likely to contain {@link JsonObjectProperty} components.\n */\n",
1097
+ "docComment": "/**\n * The contents of the JSON object. Likely to contain\n * {@link JsonObjectProperty} components.\n */\n",
1072
1098
  "excerptTokens": [
1073
1099
  {
1074
1100
  "kind": "Content",
@@ -1128,7 +1154,7 @@
1128
1154
  {
1129
1155
  "kind": "PropertySignature",
1130
1156
  "canonicalReference": "@alloy-js/json!JsonObjectPropsWithJsValue#jsValue:member",
1131
- "docComment": "/**\n * The JS value to serialize to JSON. This can be an array of key-value pairs, a map, or a vanilla JS object.\n */\n",
1157
+ "docComment": "/**\n * The JS value to serialize to JSON. This can be an array of key-value pairs,\n * a map, or a vanilla JS object.\n */\n",
1132
1158
  "excerptTokens": [
1133
1159
  {
1134
1160
  "kind": "Content",
@@ -1181,7 +1207,7 @@
1181
1207
  {
1182
1208
  "kind": "Interface",
1183
1209
  "canonicalReference": "@alloy-js/json!JsonOutputSymbol:interface",
1184
- "docComment": "/**\n * JsonOutputSymbol is created for JSON Values with a refkey. For JSON objects and arrays, the symbol will have the `StaticMemberContainer` flag. For JSON values that are members of an object or an array, the symbol will have the `StaticMember` flag.\n */\n",
1210
+ "docComment": "/**\n * JsonOutputSymbol is created for JSON Values with a refkey. For JSON objects\n * and arrays, the symbol will have the `StaticMemberContainer` flag. For JSON\n * values that are members of an object or an array, the symbol will have the\n * `StaticMember` flag.\n */\n",
1185
1211
  "excerptTokens": [
1186
1212
  {
1187
1213
  "kind": "Content",
@@ -1349,7 +1375,7 @@
1349
1375
  {
1350
1376
  "kind": "Function",
1351
1377
  "canonicalReference": "@alloy-js/json!JsonValue:function(1)",
1352
- "docComment": "/**\n * Create a JSON value from a JS value. When the provided JS value is an object, the {@link JsonObject} component will be used. When the provided JS value is an array, the {@link JsonArray} component will be used. Otherwise, the JS value will be serialized to a string, number, boolean, or null as appropriate.\n */\n",
1378
+ "docComment": "/**\n * Create a JSON value from a JS value. When the provided JS value is an object,\n * the {@link JsonObject} component will be used. When the provided JS value is\n * an array, the {@link JsonArray} component will be used. Otherwise, the JS\n * value will be serialized to a string, number, boolean, or null as\n * appropriate.\n */\n",
1353
1379
  "excerptTokens": [
1354
1380
  {
1355
1381
  "kind": "Content",
@@ -1442,7 +1468,7 @@
1442
1468
  {
1443
1469
  "kind": "PropertySignature",
1444
1470
  "canonicalReference": "@alloy-js/json!JsonValueProps#refkey:member",
1445
- "docComment": "/**\n * The refkey for the JSON value. When provided, this value can be referenced elsewhere via this refkey.\n */\n",
1471
+ "docComment": "/**\n * The refkey or array of refkeys for the JSON value. When provided, this\n * value can be referenced elsewhere via this refkey.\n */\n",
1446
1472
  "excerptTokens": [
1447
1473
  {
1448
1474
  "kind": "Content",
@@ -1453,6 +1479,19 @@
1453
1479
  "text": "Refkey",
1454
1480
  "canonicalReference": "@alloy-js/core!Refkey:type"
1455
1481
  },
1482
+ {
1483
+ "kind": "Content",
1484
+ "text": " | "
1485
+ },
1486
+ {
1487
+ "kind": "Reference",
1488
+ "text": "Refkey",
1489
+ "canonicalReference": "@alloy-js/core!Refkey:type"
1490
+ },
1491
+ {
1492
+ "kind": "Content",
1493
+ "text": "[]"
1494
+ },
1456
1495
  {
1457
1496
  "kind": "Content",
1458
1497
  "text": ";"
@@ -1464,7 +1503,7 @@
1464
1503
  "name": "refkey",
1465
1504
  "propertyTypeTokenRange": {
1466
1505
  "startIndex": 1,
1467
- "endIndex": 2
1506
+ "endIndex": 5
1468
1507
  }
1469
1508
  }
1470
1509
  ],
@@ -1509,7 +1548,7 @@
1509
1548
  {
1510
1549
  "kind": "Interface",
1511
1550
  "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithChildren:interface",
1512
- "docComment": "/**\n * Create a JSON object property with a name and children. The children become the value of the property.\n */\n",
1551
+ "docComment": "/**\n * Create a JSON object property with a name and children. The children become\n * the value of the property.\n */\n",
1513
1552
  "excerptTokens": [
1514
1553
  {
1515
1554
  "kind": "Content",
@@ -1582,7 +1621,7 @@
1582
1621
  {
1583
1622
  "kind": "Interface",
1584
1623
  "canonicalReference": "@alloy-js/json!ObjectPropertyPropsWithJsValue:interface",
1585
- "docComment": "/**\n * Create a JSON object property with a name and a JS value. The JS value is serialized to JSON for the property\n */\n",
1624
+ "docComment": "/**\n * Create a JSON object property with a name and a JS value. The JS value is\n * serialized to JSON for the property\n */\n",
1586
1625
  "excerptTokens": [
1587
1626
  {
1588
1627
  "kind": "Content",
@@ -1700,7 +1739,7 @@
1700
1739
  {
1701
1740
  "kind": "Function",
1702
1741
  "canonicalReference": "@alloy-js/json!Reference:function(1)",
1703
- "docComment": "/**\n * Emit a reference to a JSON value by its refkey.\n *\n * @remarks\n *\n * Note that when you place a refkey in a template, the refkey will be converted into a reference automatically. Using this component directly is generally not required or recommended.\n */\n",
1742
+ "docComment": "/**\n * Emit a reference to a JSON value by its refkey.\n *\n * @remarks\n *\n *\n *\n * Note that when you place a refkey in a template, the refkey will be converted\n * into a reference automatically. Using this component directly is generally\n * not required or recommended.\n */\n",
1704
1743
  "excerptTokens": [
1705
1744
  {
1706
1745
  "kind": "Content",
@@ -1797,7 +1836,7 @@
1797
1836
  {
1798
1837
  "kind": "Function",
1799
1838
  "canonicalReference": "@alloy-js/json!SourceFile:function(1)",
1800
- "docComment": "/**\n * Creates a JSON source file which defines a JSON value.\n *\n * @see\n *\n * {@link (JsonFileContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(SourceFileContext:variable)}\n */\n",
1839
+ "docComment": "/**\n * Creates a JSON source file which defines a JSON value.\n *\n * @see\n *\n * {@link (JsonFileContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(MemberDeclarationContext:variable)}\n *\n * @see\n *\n * {@link @alloy-js/core#(SourceFileContext:variable)}\n *\n */\n",
1801
1840
  "excerptTokens": [
1802
1841
  {
1803
1842
  "kind": "Content",
package/vitest.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { babel } from "@rollup/plugin-babel";
1
+ import alloyPlugin from "@alloy-js/rollup-plugin";
2
2
  import { defineConfig } from "vitest/config";
3
3
 
4
4
  export default defineConfig({
@@ -6,13 +6,5 @@ export default defineConfig({
6
6
  jsx: "preserve",
7
7
  sourcemap: "both",
8
8
  },
9
- plugins: [
10
- babel({
11
- inputSourceMap: true as any,
12
- sourceMaps: "both",
13
- babelHelpers: "bundled",
14
- extensions: [".ts", ".tsx"],
15
- presets: ["@babel/preset-typescript", ["@alloy-js/babel-preset"]],
16
- }),
17
- ],
9
+ plugins: [alloyPlugin()],
18
10
  });