solid-refresh 0.7.5 → 0.8.0-next.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.
Files changed (91) hide show
  1. package/dist/babel.cjs +38 -33
  2. package/dist/babel.cjs.map +1 -1
  3. package/dist/babel.mjs +38 -33
  4. package/dist/babel.mjs.map +1 -1
  5. package/dist/solid-refresh.cjs +12 -43
  6. package/dist/solid-refresh.cjs.map +1 -1
  7. package/dist/solid-refresh.mjs +13 -43
  8. package/dist/solid-refresh.mjs.map +1 -1
  9. package/dist/src/babel/core/checks.d.ts.map +1 -1
  10. package/dist/src/babel/core/constants.d.ts.map +1 -1
  11. package/dist/src/babel/core/create-registry.d.ts.map +1 -1
  12. package/dist/src/babel/core/generate-unique-name.d.ts.map +1 -1
  13. package/dist/src/babel/core/generator.d.ts.map +1 -1
  14. package/dist/src/babel/core/get-descriptive-name.d.ts.map +1 -1
  15. package/dist/src/babel/core/get-foreign-bindings.d.ts.map +1 -1
  16. package/dist/src/babel/core/get-hmr-decline-call.d.ts.map +1 -1
  17. package/dist/src/babel/core/get-hot-identifier.d.ts +1 -1
  18. package/dist/src/babel/core/get-hot-identifier.d.ts.map +1 -1
  19. package/dist/src/babel/core/get-import-identifier.d.ts.map +1 -1
  20. package/dist/src/babel/core/get-root-statement-path.d.ts.map +1 -1
  21. package/dist/src/babel/core/get-statement-path.d.ts.map +1 -1
  22. package/dist/src/babel/core/is-statement-top-level.d.ts.map +1 -1
  23. package/dist/src/babel/core/is-valid-callee.d.ts +1 -1
  24. package/dist/src/babel/core/is-valid-callee.d.ts.map +1 -1
  25. package/dist/src/babel/core/register-import-specifiers.d.ts.map +1 -1
  26. package/dist/src/babel/core/transform-jsx.d.ts.map +1 -1
  27. package/dist/src/babel/core/types.d.ts.map +1 -1
  28. package/dist/src/babel/core/unwrap.d.ts.map +1 -1
  29. package/dist/src/babel/core/xxhash32.d.ts.map +1 -1
  30. package/dist/src/babel/index.d.ts.map +1 -1
  31. package/dist/src/runtime/create-proxy.d.ts.map +1 -1
  32. package/dist/src/runtime/index.d.ts +1 -7
  33. package/dist/src/runtime/index.d.ts.map +1 -1
  34. package/dist/src/runtime/is-list-updated.d.ts.map +1 -1
  35. package/dist/src/shared/types.d.ts.map +1 -1
  36. package/package.json +15 -15
  37. package/dist/solid-refresh.js +0 -152
  38. package/dist/src/babel/core/get-vite-hmr-requirement.d.ts +0 -4
  39. package/dist/src/babel/core/get-vite-hmr-requirement.d.ts.map +0 -1
  40. package/dist/src/babel/utils.d.ts +0 -2
  41. package/dist/src/babel/xxhash32.d.ts +0 -6
  42. package/dist/types/src/babel/core/checks.d.ts +0 -4
  43. package/dist/types/src/babel/core/checks.d.ts.map +0 -1
  44. package/dist/types/src/babel/core/constants.d.ts +0 -8
  45. package/dist/types/src/babel/core/constants.d.ts.map +0 -1
  46. package/dist/types/src/babel/core/create-registry.d.ts +0 -5
  47. package/dist/types/src/babel/core/create-registry.d.ts.map +0 -1
  48. package/dist/types/src/babel/core/generate-unique-name.d.ts +0 -4
  49. package/dist/types/src/babel/core/generate-unique-name.d.ts.map +0 -1
  50. package/dist/types/src/babel/core/generator.d.ts +0 -3
  51. package/dist/types/src/babel/core/generator.d.ts.map +0 -1
  52. package/dist/types/src/babel/core/get-descriptive-name.d.ts +0 -3
  53. package/dist/types/src/babel/core/get-descriptive-name.d.ts.map +0 -1
  54. package/dist/types/src/babel/core/get-foreign-bindings.d.ts +0 -4
  55. package/dist/types/src/babel/core/get-foreign-bindings.d.ts.map +0 -1
  56. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts +0 -4
  57. package/dist/types/src/babel/core/get-hmr-decline-call.d.ts.map +0 -1
  58. package/dist/types/src/babel/core/get-hot-identifier.d.ts +0 -4
  59. package/dist/types/src/babel/core/get-hot-identifier.d.ts.map +0 -1
  60. package/dist/types/src/babel/core/get-import-identifier.d.ts +0 -5
  61. package/dist/types/src/babel/core/get-import-identifier.d.ts.map +0 -1
  62. package/dist/types/src/babel/core/get-root-statement-path.d.ts +0 -3
  63. package/dist/types/src/babel/core/get-root-statement-path.d.ts.map +0 -1
  64. package/dist/types/src/babel/core/get-statement-path.d.ts +0 -3
  65. package/dist/types/src/babel/core/get-statement-path.d.ts.map +0 -1
  66. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts +0 -4
  67. package/dist/types/src/babel/core/get-vite-hmr-requirement.d.ts.map +0 -1
  68. package/dist/types/src/babel/core/is-valid-callee.d.ts +0 -5
  69. package/dist/types/src/babel/core/is-valid-callee.d.ts.map +0 -1
  70. package/dist/types/src/babel/core/register-import-specifiers.d.ts +0 -5
  71. package/dist/types/src/babel/core/register-import-specifiers.d.ts.map +0 -1
  72. package/dist/types/src/babel/core/transform-jsx.d.ts +0 -4
  73. package/dist/types/src/babel/core/transform-jsx.d.ts.map +0 -1
  74. package/dist/types/src/babel/core/types.d.ts +0 -40
  75. package/dist/types/src/babel/core/types.d.ts.map +0 -1
  76. package/dist/types/src/babel/core/unwrap.d.ts +0 -11
  77. package/dist/types/src/babel/core/unwrap.d.ts.map +0 -1
  78. package/dist/types/src/babel/core/xxhash32.d.ts +0 -7
  79. package/dist/types/src/babel/core/xxhash32.d.ts.map +0 -1
  80. package/dist/types/src/babel/index.d.ts +0 -8
  81. package/dist/types/src/babel/index.d.ts.map +0 -1
  82. package/dist/types/src/babel/xxhash32.d.ts +0 -7
  83. package/dist/types/src/babel/xxhash32.d.ts.map +0 -1
  84. package/dist/types/src/runtime/create-proxy.d.ts +0 -6
  85. package/dist/types/src/runtime/create-proxy.d.ts.map +0 -1
  86. package/dist/types/src/runtime/index.d.ts +0 -60
  87. package/dist/types/src/runtime/index.d.ts.map +0 -1
  88. package/dist/types/src/runtime/is-list-updated.d.ts +0 -2
  89. package/dist/types/src/runtime/is-list-updated.d.ts.map +0 -1
  90. package/dist/types/src/shared/types.d.ts +0 -4
  91. package/dist/types/src/shared/types.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-proxy.d.ts","sourceRoot":"","sources":["create-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;CACzB;AAuBD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAuC3B"}
1
+ {"version":3,"file":"create-proxy.d.ts","sourceRoot":"","sources":["../../../src/runtime/create-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;CACzB;AAuBD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAyC3B"}
@@ -1,4 +1,4 @@
1
- import type { Context, JSX } from 'solid-js';
1
+ import type { JSX } from 'solid-js';
2
2
  import type { ESMRuntimeType, StandardRuntimeType } from '../shared/types';
3
3
  interface ComponentOptions {
4
4
  location?: string;
@@ -11,17 +11,11 @@ export interface ComponentRegistrationData<P> extends ComponentOptions {
11
11
  proxy: (props: P) => JSX.Element;
12
12
  update: (action: () => (props: P) => JSX.Element) => void;
13
13
  }
14
- export interface ContextRegistrationData<T> {
15
- id: string;
16
- context: Context<T>;
17
- }
18
14
  export interface Registry {
19
15
  components: Map<string, ComponentRegistrationData<any>>;
20
- contexts: Map<string, ContextRegistrationData<any>>;
21
16
  }
22
17
  export declare function $$registry(): Registry;
23
18
  export declare function $$component<P>(registry: Registry, id: string, component: (props: P) => JSX.Element, options?: ComponentOptions): (props: P) => JSX.Element;
24
- export declare function $$context<T>(registry: Registry, id: string, context: Context<T>): Context<T>;
25
19
  declare const SOLID_REFRESH = "solid-refresh";
26
20
  declare const SOLID_REFRESH_PREV = "solid-refresh-prev";
27
21
  type HotData = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3E,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC1C;AAGD,MAAM,WAAW,yBAAyB,CAAC,CAAC,CAAE,SAAQ,gBAAgB;IAGpE,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IACrC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IAGjC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC3D;AAGD,MAAM,WAAW,uBAAuB,CAAC,CAAC;IAGxC,EAAE,EAAE,MAAM,CAAC;IAEX,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AC,GAAG,SAAS,GACjC,OAAO,CAWT"}
1
+ {"version":3,"file":"is-list-updated.d.ts","sourceRoot":"","sources":["../../../src/runtime/is-list-updated.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EAClC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GACjC,OAAO,CAWT"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAG5C,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAEzE,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,mBAAmB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAG5C,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;AAEzE,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Universal HMR for SolidJS",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
- "version": "0.7.5",
7
+ "version": "0.8.0-next.0",
8
8
  "homepage": "https://github.com/solidjs/solid-refresh#readme",
9
9
  "repository": {
10
10
  "type": "git",
@@ -45,26 +45,26 @@
45
45
  ],
46
46
  "sideEffects": false,
47
47
  "devDependencies": {
48
- "@babel/core": "^7.23.9",
49
- "@biomejs/biome": "^1.5.3",
50
- "@rollup/plugin-node-resolve": "^15.2.3",
51
- "@rollup/plugin-typescript": "^11.1.6",
48
+ "@babel/core": "^7.29.0",
49
+ "@biomejs/biome": "^2.4.4",
50
+ "@rollup/plugin-node-resolve": "^16.0.3",
51
+ "@rollup/plugin-typescript": "^12.3.0",
52
52
  "@types/babel__core": "^7.20.5",
53
- "@types/babel__generator": "^7.6.8",
54
- "@types/node": "^20.11.10",
55
- "babel-preset-solid": "^1.8.12",
56
- "rollup": "^4.9.6",
57
- "solid-js": "^1.8.12",
53
+ "@types/babel__generator": "^7.27.0",
54
+ "@types/node": "^25.3.0",
55
+ "babel-preset-solid": "^2.0.0-experimental.16",
56
+ "rollup": "^4.59.0",
57
+ "solid-js": "^2.0.0-experimental.16",
58
58
  "tslib": "^2.6.2",
59
- "typescript": "^5.3.3",
60
- "vitest": "^1.2.2"
59
+ "typescript": "^5.9.3",
60
+ "vitest": "^4.0.18"
61
61
  },
62
62
  "peerDependencies": {
63
- "solid-js": "^1.3"
63
+ "solid-js": "^2.0.0-experimental"
64
64
  },
65
65
  "dependencies": {
66
- "@babel/generator": "^7.23.6",
67
- "@babel/types": "^7.23.6"
66
+ "@babel/generator": "^7.29.1",
67
+ "@babel/types": "^7.29.0"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "rollup -c",
@@ -1,152 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var solidJs = require('solid-js');
6
-
7
- function createProxy(source) {
8
- return new Proxy(function hmrCompWrapper(props, ...rest) {
9
- const s = source();
10
- if (!s || solidJs.$DEVCOMP in s) {
11
- return solidJs.createMemo(() => {
12
- const c = source();
13
- if (c) {
14
- return solidJs.untrack(() => c(props));
15
- }
16
- return undefined;
17
- });
18
- }
19
- // no $DEVCOMP means it did not go through devComponent so source() is a regular function, not a component
20
- return s.call(this, props, ...rest);
21
- }, {
22
- get(_, property) {
23
- return source()[property];
24
- },
25
- set(_, property, value) {
26
- source()[property] = value;
27
- return true;
28
- }
29
- });
30
- }
31
-
32
- function isListUpdated(a, b) {
33
- if (a == null && b != null) {
34
- return true;
35
- }
36
- if (a != null && b == null) {
37
- return true;
38
- }
39
- if (a && b) {
40
- if (a.length !== b.length) {
41
- return true;
42
- }
43
- for (let i = 0, len = a.length; i < len; i++) {
44
- if (!Object.is(a[i], b[i])) {
45
- return true;
46
- }
47
- }
48
- }
49
- return false;
50
- }
51
-
52
- function hot$1({ component: Comp, id, signature, dependencies }, hot) {
53
- if (hot) {
54
- const [comp, setComp] = solidJs.createSignal(Comp, { internal: true });
55
- const prev = hot.data;
56
- // Check if there's previous data
57
- if (prev && prev[id]) {
58
- // Check if there's a new signature and dependency
59
- // This is always new in standard HMR
60
- if (signature && dependencies) {
61
- // Check if signature changed
62
- // or dependencies changed
63
- if (prev[id].signature !== signature ||
64
- isListUpdated(prev[id].dependencies, dependencies)) {
65
- // Remount
66
- prev[id].dependencies = dependencies;
67
- prev[id].signature = signature;
68
- prev[id].setComp(() => Comp);
69
- }
70
- }
71
- else {
72
- prev[id].setComp(() => Comp);
73
- }
74
- }
75
- hot.dispose(data => {
76
- data[id] = prev
77
- ? prev[id]
78
- : {
79
- setComp,
80
- signature,
81
- dependencies
82
- };
83
- });
84
- hot.accept();
85
- return createProxy(comp);
86
- }
87
- return Comp;
88
- }
89
-
90
- const HOT_DATA_PREFIX = "solid-refresh-ctx";
91
- function hot({ component: Comp, id, signature, dependencies }, hot) {
92
- let Component = Comp;
93
- function handler(newModule) {
94
- const registration = newModule.$$registrations[id];
95
- if (!registration) {
96
- // For some reason, the registration was lost, invalidate
97
- return true;
98
- }
99
- registration.component.setComp = Comp.setComp;
100
- registration.component.signature = Comp.signature;
101
- registration.component.dependencies = Comp.dependencies;
102
- // Check if incoming module has signature
103
- if (registration.signature && registration.dependencies) {
104
- // Compare old signature and dependencies
105
- if (registration.signature !== Comp.signature ||
106
- isListUpdated(registration.dependencies, Comp.dependencies)) {
107
- // Remount
108
- Comp.dependencies = registration.dependencies;
109
- Comp.signature = registration.signature;
110
- Comp.setComp(() => registration.component);
111
- }
112
- }
113
- else {
114
- // No granular update, remount
115
- Comp.setComp(() => registration.component);
116
- }
117
- registration.component.signature = Comp.signature;
118
- registration.component.dependencies = Comp.dependencies;
119
- return false;
120
- }
121
- if (hot && hot.data) {
122
- const refreshData = (hot.data[HOT_DATA_PREFIX] = hot.data[HOT_DATA_PREFIX] || {});
123
- if (refreshData[id]) {
124
- Comp.setComp = refreshData[id].Comp.setComp;
125
- return { Component: refreshData[id].Component, handler };
126
- }
127
- const [comp, setComp] = solidJs.createSignal(Comp, { internal: true });
128
- Comp.setComp = setComp;
129
- Comp.dependencies = dependencies;
130
- Comp.signature = signature;
131
- Component = createProxy(comp);
132
- refreshData[id] = { Component, Comp };
133
- }
134
- return { Component, handler };
135
- }
136
-
137
- let warned = false;
138
- function shouldWarnAndDecline() {
139
- const result = solidJs.DEV && Object.keys(solidJs.DEV).length;
140
- if (result) {
141
- return false;
142
- }
143
- if (!warned) {
144
- console.warn("To use solid-refresh, you need to use the dev build of SolidJS. Make sure your build system supports package.json conditional exports and has the 'development' condition turned on.");
145
- warned = true;
146
- }
147
- return true;
148
- }
149
-
150
- exports.esm = hot;
151
- exports.shouldWarnAndDecline = shouldWarnAndDecline;
152
- exports.standard = hot$1;
@@ -1,4 +0,0 @@
1
- import type { StateContext } from './types';
2
- import * as t from '@babel/types';
3
- export declare function generateViteHMRRequirement(state: StateContext, statements: t.Statement[], pathToHot: t.Expression): void;
4
- //# sourceMappingURL=get-vite-hmr-requirement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-vite-hmr-requirement.d.ts","sourceRoot":"","sources":["get-vite-hmr-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,CAAC,CAAC,SAAS,EAAE,EACzB,SAAS,EAAE,CAAC,CAAC,UAAU,QAaxB"}
@@ -1,2 +0,0 @@
1
- export declare function forEach<T>(arr: T[], callback: (value: T, index: number) => boolean | void): void;
2
- export declare function map<T, R>(arr: T[], callback: (value: T, index: number) => R): R[];
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param buffer - byte array or string
4
- * @param seed - optional seed (32-bit unsigned);
5
- */
6
- export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
@@ -1,4 +0,0 @@
1
- import * as t from '@babel/types';
2
- export declare function isComponentishName(name: string): boolean;
3
- export declare function getImportSpecifierName(specifier: t.ImportSpecifier): string;
4
- //# sourceMappingURL=checks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/checks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAKlC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,WAE9C;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,CAAC,CAAC,eAAe,GAAG,MAAM,CAK3E"}
@@ -1,8 +0,0 @@
1
- import type { ImportDefinition, ImportIdentifierSpecifier } from './types';
2
- export declare const IMPORT_REGISTRY: ImportDefinition;
3
- export declare const IMPORT_REFRESH: ImportDefinition;
4
- export declare const IMPORT_COMPONENT: ImportDefinition;
5
- export declare const IMPORT_CONTEXT: ImportDefinition;
6
- export declare const IMPORT_DECLINE: ImportDefinition;
7
- export declare const IMPORT_SPECIFIERS: ImportIdentifierSpecifier[];
8
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAM3E,eAAO,MAAM,eAAe,EAAE,gBAI7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,gBAI9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAI5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,yBAAyB,EAyBxD,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { StateContext } from './types';
2
- import type * as babel from '@babel/core';
3
- import * as t from '@babel/types';
4
- export declare function createRegistry(state: StateContext, path: babel.NodePath): t.Identifier;
5
- //# sourceMappingURL=create-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-registry.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/create-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AASlC,wBAAgB,cAAc,CAC5B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,GACnB,CAAC,CAAC,UAAU,CAoCd"}
@@ -1,4 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import * as t from '@babel/types';
3
- export declare function generateUniqueName(path: babel.NodePath, name: string): t.Identifier;
4
- //# sourceMappingURL=generate-unique-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-unique-name.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/generate-unique-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,IAAI,EAAE,MAAM,GACX,CAAC,CAAC,UAAU,CAkBd"}
@@ -1,3 +0,0 @@
1
- import type * as t from '@babel/types';
2
- export declare function generateCode(node: t.Node): string;
3
- //# sourceMappingURL=generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAUvC,wBAAgB,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,MAAM,CAEjD"}
@@ -1,3 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- export declare function getDescriptiveName(path: babel.NodePath, defaultName: string): string;
3
- //# sourceMappingURL=get-descriptive-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-descriptive-name.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-descriptive-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAE1C,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,WAAW,EAAE,MAAM,GAClB,MAAM,CAoCR"}
@@ -1,4 +0,0 @@
1
- import * as t from '@babel/types';
2
- import type * as babel from '@babel/core';
3
- export declare function getForeignBindings(path: babel.NodePath): t.Identifier[];
4
- //# sourceMappingURL=get-foreign-bindings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-foreign-bindings.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-foreign-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AA8B1C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,UAAU,EAAE,CAiBvE"}
@@ -1,4 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type { StateContext } from './types';
3
- export declare function getHMRDeclineCall(state: StateContext, path: babel.NodePath): babel.types.IfStatement;
4
- //# sourceMappingURL=get-hmr-decline-call.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-hmr-decline-call.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-hmr-decline-call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,2BAc1E"}
@@ -1,4 +0,0 @@
1
- import type { StateContext } from './types';
2
- import * as t from '@babel/types';
3
- export declare function getHotIdentifier(state: StateContext): t.MemberExpression;
4
- //# sourceMappingURL=get-hot-identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-hot-identifier.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-hot-identifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,CAAC,CAAC,gBAAgB,CAqBxE"}
@@ -1,5 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type * as t from '@babel/types';
3
- import type { ImportDefinition, StateContext } from './types';
4
- export declare function getImportIdentifier(state: StateContext, path: babel.NodePath, registration: ImportDefinition): t.Identifier;
5
- //# sourceMappingURL=get-import-identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-import-identifier.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-import-identifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9D,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,YAAY,EAAE,gBAAgB,GAC7B,CAAC,CAAC,UAAU,CAad"}
@@ -1,3 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- export declare function getRootStatementPath(path: babel.NodePath): babel.NodePath;
3
- //# sourceMappingURL=get-root-statement-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-root-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-root-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAUzE"}
@@ -1,3 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- export declare function getStatementPath(path: babel.NodePath): babel.NodePath | null;
3
- //# sourceMappingURL=get-statement-path.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-statement-path.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-statement-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,GAAG,IAAI,CAQ5E"}
@@ -1,4 +0,0 @@
1
- import type { StateContext } from './types';
2
- import * as t from '@babel/types';
3
- export declare function generateViteHMRRequirement(state: StateContext, statements: t.Statement[], pathToHot: t.Expression): void;
4
- //# sourceMappingURL=get-vite-hmr-requirement.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-vite-hmr-requirement.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/get-vite-hmr-requirement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,CAAC,CAAC,SAAS,EAAE,EACzB,SAAS,EAAE,CAAC,CAAC,UAAU,QAaxB"}
@@ -1,5 +0,0 @@
1
- import type { ImportIdentifierType, StateContext } from './types';
2
- import type * as babel from '@babel/core';
3
- import * as t from '@babel/types';
4
- export declare function isValidCallee(state: StateContext, path: babel.NodePath, { callee }: t.CallExpression, target: ImportIdentifierType): boolean;
5
- //# sourceMappingURL=is-valid-callee.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-valid-callee.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/is-valid-callee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AA8DlC,wBAAgB,aAAa,CAC3B,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,EAC5B,MAAM,EAAE,oBAAoB,WAe7B"}
@@ -1,5 +0,0 @@
1
- import type { ImportIdentifierSpecifier, StateContext } from './types';
2
- import * as t from '@babel/types';
3
- import type * as babel from '@babel/core';
4
- export declare function registerImportSpecifiers(state: StateContext, path: babel.NodePath<t.ImportDeclaration>, definitions: ImportIdentifierSpecifier[]): void;
5
- //# sourceMappingURL=register-import-specifiers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register-import-specifiers.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/register-import-specifiers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAmC1C,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,EACzC,WAAW,EAAE,yBAAyB,EAAE,QAUzC"}
@@ -1,4 +0,0 @@
1
- import * as t from '@babel/types';
2
- import type * as babel from '@babel/core';
3
- export declare function transformJSX(path: babel.NodePath<t.JSXElement | t.JSXFragment>): void;
4
- //# sourceMappingURL=transform-jsx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform-jsx.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/transform-jsx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAyP1C,wBAAgB,YAAY,CAC1B,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,GACjD,IAAI,CA0DN"}
@@ -1,40 +0,0 @@
1
- import type * as t from '@babel/types';
2
- import type { RuntimeType } from '../../shared/types';
3
- export interface NamedImportDefinition {
4
- kind: 'named';
5
- name: string;
6
- source: string;
7
- }
8
- export interface DefaultImportDefinition {
9
- kind: 'default';
10
- source: string;
11
- }
12
- export type ImportDefinition = DefaultImportDefinition | NamedImportDefinition;
13
- export interface Options {
14
- granular?: boolean;
15
- bundler?: RuntimeType;
16
- fixRender?: boolean;
17
- imports?: {
18
- createContext: ImportDefinition[];
19
- render: ImportDefinition[];
20
- };
21
- }
22
- export type ImportIdentifierType = 'render' | 'createContext';
23
- export interface ImportIdentifierSpecifier {
24
- type: ImportIdentifierType;
25
- definition: ImportDefinition;
26
- }
27
- export interface StateContext {
28
- granular: boolean;
29
- opts: Options;
30
- specifiers: ImportIdentifierSpecifier[];
31
- imports: Map<string, t.Identifier>;
32
- registrations: {
33
- identifiers: Map<t.Identifier, ImportIdentifierSpecifier>;
34
- namespaces: Map<t.Identifier, ImportIdentifierSpecifier[]>;
35
- };
36
- filename: string | undefined;
37
- bundler: RuntimeType;
38
- fixRender: boolean;
39
- }
40
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GAAG,uBAAuB,GAAG,qBAAqB,CAAC;AAE/E,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,aAAa,EAAE,gBAAgB,EAAE,CAAC;QAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,eAAe,CAAC;AAE9D,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,yBAAyB,EAAE,CAAC;IACxC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,CAAC,CAAC;QAC1D,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,yBAAyB,EAAE,CAAC,CAAC;KAC5D,CAAC;IACF,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -1,11 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type * as t from '@babel/types';
3
- type TypeFilter<V extends t.Node> = (node: t.Node) => node is V;
4
- export declare function isPathValid<V extends t.Node>(path: unknown, key: TypeFilter<V>): path is babel.NodePath<V>;
5
- export type NestedExpression = t.ParenthesizedExpression | t.TypeCastExpression | t.TSAsExpression | t.TSSatisfiesExpression | t.TSNonNullExpression | t.TSInstantiationExpression | t.TSTypeAssertion;
6
- export declare function isNestedExpression(node: t.Node): node is NestedExpression;
7
- type TypeCheck<K> = K extends TypeFilter<infer U> ? U : never;
8
- export declare function unwrapNode<K extends (value: t.Node) => boolean>(node: t.Node, key: K): TypeCheck<K> | undefined;
9
- export declare function unwrapPath<V extends t.Node>(path: unknown, key: TypeFilter<V>): babel.NodePath<V> | undefined;
10
- export {};
11
- //# sourceMappingURL=unwrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unwrap.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/unwrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAC;AAEvC,KAAK,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC;AAEhE,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAC1C,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAE3B;AAED,MAAM,MAAM,gBAAgB,GACxB,CAAC,CAAC,uBAAuB,GACzB,CAAC,CAAC,kBAAkB,GACpB,CAAC,CAAC,cAAc,GAChB,CAAC,CAAC,qBAAqB,GACvB,CAAC,CAAC,mBAAmB,GACrB,CAAC,CAAC,yBAAyB,GAC3B,CAAC,CAAC,eAAe,CAAC;AAEtB,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,IAAI,gBAAgB,CAazE;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE9D,wBAAgB,UAAU,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,KAAK,OAAO,EAC7D,IAAI,EAAE,CAAC,CAAC,IAAI,EACZ,GAAG,EAAE,CAAC,GACL,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ1B;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EACzC,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GACjB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ/B"}
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param buffer - byte array or string
4
- * @param seed - optional seed (32-bit unsigned);
5
- */
6
- export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
7
- //# sourceMappingURL=xxhash32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash32.d.ts","sourceRoot":"","sources":["../../../../src/babel/core/xxhash32.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqKtE"}
@@ -1,8 +0,0 @@
1
- import type * as babel from '@babel/core';
2
- import type { Options } from './core/types';
3
- interface State extends babel.PluginPass {
4
- opts: Options;
5
- }
6
- export type { Options };
7
- export default function solidRefreshPlugin(): babel.PluginObj<State>;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/babel/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,cAAc,CAAC;AAqU1D,UAAU,KAAM,SAAQ,KAAK,CAAC,UAAU;IACtC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAgDnE"}
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param buffer - byte array or string
4
- * @param seed - optional seed (32-bit unsigned);
5
- */
6
- export declare function xxHash32(buffer: Uint8Array | string, seed?: number): number;
7
- //# sourceMappingURL=xxhash32.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxhash32.d.ts","sourceRoot":"","sources":["../../../src/babel/xxhash32.ts"],"names":[],"mappings":"AAiCA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAqKtE"}
@@ -1,6 +0,0 @@
1
- import type { JSX, Accessor } from 'solid-js';
2
- export interface BaseComponent<P> {
3
- (props: P): JSX.Element;
4
- }
5
- export default function createProxy<C extends BaseComponent<P>, P>(source: Accessor<C>, name: string, location?: string): (props: P) => JSX.Element;
6
- //# sourceMappingURL=create-proxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-proxy.d.ts","sourceRoot":"","sources":["../../../src/runtime/create-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAG9C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,CAAC,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC;CACzB;AAuBD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAC/D,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAuC3B"}