@vxrn/compiler 1.1.397 → 1.1.398
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/dist/cjs/configure.cjs +1 -0
- package/dist/cjs/configure.js +1 -0
- package/dist/cjs/configure.js.map +1 -1
- package/dist/cjs/index.cjs +57 -7
- package/dist/cjs/index.js +51 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/refresh-runtime.cjs +1 -3
- package/dist/cjs/refresh-runtime.js +1 -1
- package/dist/cjs/refresh-runtime.js.map +1 -1
- package/dist/cjs/transformBabel.cjs +22 -18
- package/dist/cjs/transformBabel.js +19 -22
- package/dist/cjs/transformBabel.js.map +1 -1
- package/dist/cjs/transformSWC.cjs +77 -76
- package/dist/cjs/transformSWC.js +76 -76
- package/dist/cjs/transformSWC.js.map +1 -1
- package/dist/esm/configure.js +1 -0
- package/dist/esm/configure.js.map +1 -1
- package/dist/esm/configure.mjs +1 -0
- package/dist/esm/configure.mjs.map +1 -1
- package/dist/esm/index.js +53 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +58 -8
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/refresh-runtime.js +1 -1
- package/dist/esm/refresh-runtime.js.map +1 -1
- package/dist/esm/refresh-runtime.mjs +1 -3
- package/dist/esm/refresh-runtime.mjs.map +1 -1
- package/dist/esm/transformBabel.js +19 -21
- package/dist/esm/transformBabel.js.map +1 -1
- package/dist/esm/transformBabel.mjs +22 -18
- package/dist/esm/transformBabel.mjs.map +1 -1
- package/dist/esm/transformSWC.js +77 -77
- package/dist/esm/transformSWC.js.map +1 -1
- package/dist/esm/transformSWC.mjs +78 -77
- package/dist/esm/transformSWC.mjs.map +1 -1
- package/package.json +10 -8
- package/src/configure.ts +2 -0
- package/src/index.ts +108 -11
- package/src/refresh-runtime.js +1 -1
- package/src/transformBabel.ts +36 -17
- package/src/transformSWC.ts +102 -102
- package/types/configure.d.ts +1 -0
- package/types/configure.d.ts.map +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/transformBabel.d.ts +1 -1
- package/types/transformBabel.d.ts.map +1 -1
- package/types/transformSWC.d.ts +4 -1
- package/types/transformSWC.d.ts.map +1 -1
- package/dist/cjs/configure.native.js +0 -35
- package/dist/cjs/configure.native.js.map +0 -6
- package/dist/cjs/constants.native.js +0 -65
- package/dist/cjs/constants.native.js.map +0 -6
- package/dist/cjs/index.native.js +0 -123
- package/dist/cjs/index.native.js.map +0 -6
- package/dist/cjs/refresh-runtime.native.js +0 -316
- package/dist/cjs/refresh-runtime.native.js.map +0 -6
- package/dist/cjs/transformBabel.native.js +0 -152
- package/dist/cjs/transformBabel.native.js.map +0 -6
- package/dist/cjs/transformSWC.native.js +0 -275
- package/dist/cjs/transformSWC.native.js.map +0 -6
- package/dist/cjs/types.native.js +0 -15
- package/dist/cjs/types.native.js.map +0 -6
- package/dist/esm/configure.native.js +0 -13
- package/dist/esm/configure.native.js.map +0 -6
- package/dist/esm/constants.native.js +0 -41
- package/dist/esm/constants.native.js.map +0 -6
- package/dist/esm/index.native.js +0 -104
- package/dist/esm/index.native.js.map +0 -6
- package/dist/esm/refresh-runtime.native.js +0 -290
- package/dist/esm/refresh-runtime.native.js.map +0 -6
- package/dist/esm/transformBabel.native.js +0 -125
- package/dist/esm/transformBabel.native.js.map +0 -6
- package/dist/esm/transformSWC.native.js +0 -257
- package/dist/esm/transformSWC.native.js.map +0 -6
- package/dist/esm/types.native.js +0 -1
- package/dist/esm/types.native.js.map +0 -6
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { transform } from "@swc/core";
|
|
2
|
-
import { extname } from "node:path";
|
|
3
|
-
import { merge } from "ts-deepmerge";
|
|
4
|
-
import { configuration } from "./configure";
|
|
5
|
-
import { asyncGeneratorRegex, debug, parsers, runtimePublicPath } from "./constants";
|
|
6
|
-
async function transformSWC(id, code, options, swcOptions) {
|
|
7
|
-
if (!id.includes(".vite") && (id = id.split("?")[0].replace(process.cwd(), ""), id !== runtimePublicPath)) {
|
|
8
|
-
var parser = getParser(id, options.forceJSX);
|
|
9
|
-
if (parser) {
|
|
10
|
-
var enableNativeCSS = configuration.enableNativeCSS && // temp fix idk why this error:
|
|
11
|
-
// node_modules/react-native-reanimated/src/component/LayoutAnimationConfig.tsx (19:9): "createInteropElement" is not exported by "../../node_modules/react-native-css-interop/dist/runtime/jsx-dev-runtime.js", imported by "node_modules/react-native-reanimated/src/component/LayoutAnimationConfig.tsx
|
|
12
|
-
!id.includes("node_modules"), refresh = options.environment !== "ssr" && !options.production && !options.noHMR && !options.forceJSX, reactConfig = {
|
|
13
|
-
refresh,
|
|
14
|
-
development: !options.forceJSX && !options.production,
|
|
15
|
-
runtime: "automatic",
|
|
16
|
-
importSource: "react",
|
|
17
|
-
...enableNativeCSS ? {
|
|
18
|
-
importSource: "react-native-css-interop",
|
|
19
|
-
pragma: "createInteropElement",
|
|
20
|
-
// swc doesnt actually change the import right
|
|
21
|
-
runtime: "classic"
|
|
22
|
-
} : {}
|
|
23
|
-
}, transformOptions = function() {
|
|
24
|
-
if (options.environment === "client" || options.environment === "ssr")
|
|
25
|
-
return {
|
|
26
|
-
sourceMaps: !0,
|
|
27
|
-
jsc: {
|
|
28
|
-
target: "es2020",
|
|
29
|
-
parser,
|
|
30
|
-
transform: {
|
|
31
|
-
useDefineForClassFields: !0,
|
|
32
|
-
react: reactConfig
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var shouldEs5Transform = options.es5 || !process.env.VXRN_USE_BABEL_FOR_GENERATORS && asyncGeneratorRegex.test(code), opts = shouldEs5Transform ? {
|
|
37
|
-
jsc: {
|
|
38
|
-
parser,
|
|
39
|
-
target: "es5",
|
|
40
|
-
transform: {
|
|
41
|
-
useDefineForClassFields: !0,
|
|
42
|
-
react: reactConfig
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
} : {
|
|
46
|
-
...!options.forceJSX && {
|
|
47
|
-
env: SWC_ENV
|
|
48
|
-
},
|
|
49
|
-
jsc: {
|
|
50
|
-
...options.forceJSX && {
|
|
51
|
-
target: "esnext"
|
|
52
|
-
},
|
|
53
|
-
parser,
|
|
54
|
-
transform: {
|
|
55
|
-
useDefineForClassFields: !0,
|
|
56
|
-
react: reactConfig
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
return {
|
|
61
|
-
sourceMaps: shouldSourceMap(),
|
|
62
|
-
module: {
|
|
63
|
-
importInterop: "none",
|
|
64
|
-
type: "nodenext"
|
|
65
|
-
},
|
|
66
|
-
...options.mode === "serve-cjs" && {
|
|
67
|
-
module: {
|
|
68
|
-
importInterop: "none",
|
|
69
|
-
type: "commonjs",
|
|
70
|
-
strict: !0
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
...opts
|
|
74
|
-
};
|
|
75
|
-
}(), finalOptions = merge({
|
|
76
|
-
filename: id,
|
|
77
|
-
swcrc: !1,
|
|
78
|
-
configFile: !1,
|
|
79
|
-
...transformOptions
|
|
80
|
-
}, swcOptions || {}), result = await async function() {
|
|
81
|
-
try {
|
|
82
|
-
return debug === null || debug === void 0 || debug(`transformSWC ${id} using options:
|
|
83
|
-
${JSON.stringify(finalOptions, null, 2)}`), await transform(code, finalOptions);
|
|
84
|
-
} catch (e) {
|
|
85
|
-
var message = e.message, fileStartIndex = message.indexOf("\u256D\u2500[");
|
|
86
|
-
if (fileStartIndex !== -1) {
|
|
87
|
-
var match = message.slice(fileStartIndex).match(/:(\d+):(\d+)]/);
|
|
88
|
-
match && (e.line = match[1], e.column = match[2]);
|
|
89
|
-
}
|
|
90
|
-
throw e;
|
|
91
|
-
}
|
|
92
|
-
}();
|
|
93
|
-
enableNativeCSS && result.code.includes("createInteropElement") && (result.code = `import { createInteropElement } from 'react-native-css-interop/jsx-dev-runtime'
|
|
94
|
-
${result.code}`);
|
|
95
|
-
var shouldHMR = refresh && refreshContentRE.test(result.code);
|
|
96
|
-
if (options.fixNonTypeSpecificImports || id.includes("node_modules") && parser.syntax === "typescript") {
|
|
97
|
-
var typeExportsMatch = code.match(/^\s*export\s+type\s+([^\s]+)/gi);
|
|
98
|
-
if (typeExportsMatch) {
|
|
99
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
100
|
-
try {
|
|
101
|
-
for (var _iterator = Array.from(typeExportsMatch)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
102
|
-
var typeExport = _step.value, [_export, _type, name] = typeExport.split(/\s+/);
|
|
103
|
-
if (!name.startsWith("{") && !name.includes("<")) {
|
|
104
|
-
var alreadyExported = new RegExp(`export (const|let|class|function) ${name}\\s+`).test(result.code);
|
|
105
|
-
if (!alreadyExported) {
|
|
106
|
-
var fakeExport = `export let ${name} = {};`;
|
|
107
|
-
console.info(` \u26A0\uFE0F Fixing non-type-specifc import in node_module, this should be fixed upstream: ${fakeExport} in ${id}`), result.code += `
|
|
108
|
-
${fakeExport}
|
|
109
|
-
`;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
} catch (err) {
|
|
114
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
115
|
-
} finally {
|
|
116
|
-
try {
|
|
117
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
118
|
-
} finally {
|
|
119
|
-
if (_didIteratorError)
|
|
120
|
-
throw _iteratorError;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return !result || options.noHMR || !shouldHMR ? result : (wrapSourceInRefreshRuntime(id, result, options, shouldHMR), {
|
|
126
|
-
code: result.code
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
var SWC_ENV = {
|
|
132
|
-
targets: {
|
|
133
|
-
node: "4"
|
|
134
|
-
},
|
|
135
|
-
// debug: true,
|
|
136
|
-
include: [],
|
|
137
|
-
// this breaks the uniswap app for any file with a ...spread
|
|
138
|
-
exclude: [
|
|
139
|
-
"transform-spread",
|
|
140
|
-
"transform-destructuring",
|
|
141
|
-
"transform-object-rest-spread",
|
|
142
|
-
// `transform-async-to-generator` is relying on `transform-destructuring`.
|
|
143
|
-
// If we exclude `transform-destructuring` but not `transform-async-to-generator`, the SWC binary will panic
|
|
144
|
-
// with error: `called `Option::unwrap()` on a `None` value`.
|
|
145
|
-
// See: https://github.com/swc-project/swc/blob/v1.7.14/crates/swc_ecma_compat_es2015/src/generator.rs#L703-L705
|
|
146
|
-
"transform-async-to-generator",
|
|
147
|
-
"transform-regenerator"
|
|
148
|
-
]
|
|
149
|
-
}, refreshContentRE = /\$Refresh(?:Reg|Sig)\$\(/;
|
|
150
|
-
function shouldSourceMap() {
|
|
151
|
-
return process.env.VXRN_ENABLE_SOURCE_MAP === "1";
|
|
152
|
-
}
|
|
153
|
-
function wrapSourceInRefreshRuntime(id, result, options, shouldHMR) {
|
|
154
|
-
return options.environment === "client" || options.environment === "ssr" ? wrapSourceInRefreshRuntimeWeb(id, result, shouldHMR) : wrapSourceInRefreshRuntimeNative(id, result, options, shouldHMR);
|
|
155
|
-
}
|
|
156
|
-
function wrapSourceInRefreshRuntimeWeb(id, result, shouldHMR) {
|
|
157
|
-
var sourceMap = JSON.parse(result.map);
|
|
158
|
-
sourceMap.mappings = ";;" + sourceMap.mappings, result.code = `import * as RefreshRuntime from "${runtimePublicPath}";
|
|
159
|
-
|
|
160
|
-
${result.code}`, shouldHMR && (sourceMap.mappings = ";;;;;;" + sourceMap.mappings, result.code = `if (!window.$RefreshReg$) throw new Error("React refresh preamble was not loaded. Something is wrong.");
|
|
161
|
-
const prevRefreshReg = window.$RefreshReg$;
|
|
162
|
-
const prevRefreshSig = window.$RefreshSig$;
|
|
163
|
-
window.$RefreshReg$ = RefreshRuntime.getRefreshReg("${id}");
|
|
164
|
-
window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
165
|
-
|
|
166
|
-
${result.code}
|
|
167
|
-
|
|
168
|
-
window.$RefreshReg$ = prevRefreshReg;
|
|
169
|
-
window.$RefreshSig$ = prevRefreshSig;
|
|
170
|
-
`), result.code += `
|
|
171
|
-
RefreshRuntime.__hmr_import(import.meta.url).then((currentExports) => {
|
|
172
|
-
RefreshRuntime.registerExportsForReactRefresh("${id}", currentExports);
|
|
173
|
-
import.meta.hot.accept((nextExports) => {
|
|
174
|
-
if (!nextExports) return;
|
|
175
|
-
const invalidateMessage = RefreshRuntime.validateRefreshBoundaryAndEnqueueUpdate("${id}", currentExports, nextExports);
|
|
176
|
-
if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
`;
|
|
180
|
-
}
|
|
181
|
-
function wrapSourceInRefreshRuntimeNative(id, result, options, shouldHMR) {
|
|
182
|
-
var prefixCode = options.mode === "build" ? `
|
|
183
|
-
import 'react-native'
|
|
184
|
-
import 'react'
|
|
185
|
-
import '@vxrn/vite-native-client'
|
|
186
|
-
` : "";
|
|
187
|
-
if (options.production)
|
|
188
|
-
return `
|
|
189
|
-
${prefixCode}
|
|
190
|
-
module.url = '${id}'
|
|
191
|
-
${result.code}
|
|
192
|
-
`;
|
|
193
|
-
shouldHMR && (result.code = `const RefreshRuntime = __cachedModules["react-refresh/cjs/react-refresh-runtime.development"];
|
|
194
|
-
const prevRefreshReg = globalThis.$RefreshReg$;
|
|
195
|
-
const prevRefreshSig = globalThis.$RefreshSig$ || (() => {
|
|
196
|
-
console.info("no react refresh setup!")
|
|
197
|
-
return (x) => x
|
|
198
|
-
});
|
|
199
|
-
globalThis.$RefreshReg$ = (type, id) => RefreshRuntime.register(type, "${id}" + " " + id);
|
|
200
|
-
globalThis.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
201
|
-
|
|
202
|
-
${prefixCode}
|
|
203
|
-
|
|
204
|
-
module.url = '${id}'
|
|
205
|
-
module.hot = createHotContext(module.url)
|
|
206
|
-
|
|
207
|
-
${result.code}
|
|
208
|
-
|
|
209
|
-
if (module.hot) {
|
|
210
|
-
globalThis.$RefreshReg$ = prevRefreshReg;
|
|
211
|
-
globalThis.$RefreshSig$ = prevRefreshSig;
|
|
212
|
-
globalThis['lastHmrExports'] = JSON.stringify(Object.keys(exports))
|
|
213
|
-
}
|
|
214
|
-
`), result.code = `${result.code}
|
|
215
|
-
|
|
216
|
-
if (module.hot) {
|
|
217
|
-
if (module.hot.accept) {
|
|
218
|
-
module.hot.accept((nextExports) => {
|
|
219
|
-
RefreshRuntime.performReactRefresh()
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}`;
|
|
223
|
-
}
|
|
224
|
-
function getParser(id) {
|
|
225
|
-
var forceJSX = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
226
|
-
if (id.endsWith("one-entry-native"))
|
|
227
|
-
return parsers[".tsx"];
|
|
228
|
-
var extension = extname(id), parser = extension ? parsers[extension] : parsers[".js"];
|
|
229
|
-
return extension === ".js" && (forceJSX && (parser = parsers[".jsx"]), id.includes("expo-modules-core") && (parser = parsers[".jsx"])), parser;
|
|
230
|
-
}
|
|
231
|
-
var transformSWCStripJSX = async function(id, code) {
|
|
232
|
-
var parser = getParser(id);
|
|
233
|
-
if (parser)
|
|
234
|
-
return await transform(code, {
|
|
235
|
-
filename: id,
|
|
236
|
-
swcrc: !1,
|
|
237
|
-
configFile: !1,
|
|
238
|
-
sourceMaps: shouldSourceMap(),
|
|
239
|
-
jsc: {
|
|
240
|
-
target: "es2019",
|
|
241
|
-
parser,
|
|
242
|
-
transform: {
|
|
243
|
-
useDefineForClassFields: !0,
|
|
244
|
-
react: {
|
|
245
|
-
development: !0,
|
|
246
|
-
runtime: "automatic",
|
|
247
|
-
refresh: !1
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
};
|
|
253
|
-
export {
|
|
254
|
-
transformSWC,
|
|
255
|
-
transformSWCStripJSX
|
|
256
|
-
};
|
|
257
|
-
//# sourceMappingURL=transformSWC.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/one/packages/compiler/src/transformSWC.ts"],
|
|
4
|
-
"mappings": "AAAA,SACEA,iBAKK;AAEP,SAASC,eAAe;AACxB,SAASC,aAAa;AACtB,SAASC,qBAAqB;AAC9B,SAASC,qBAAqBC,OAAOC,SAASC,yBAAyB;AAGvE,eAAsBC,aACpBC,IACAC,MACAC,SACAC,YAAuB;AAEvB,MAAIH,IAAGI,SAAS,OAAA,MAIhBJ,KAAKA,GACFK,MAAM,GAAA,EAAK,CAAA,EAEXC,QAAQC,QAAQC,IAAG,GAAI,EAAA,GAEtBR,OAAOF,oBAIX;QAAMW,SAASC,UAAUV,IAAIE,QAAQS,QAAQ;AAE7C,QAAKF,QAIL;UAAMG,kBACJlB,cAAckB;;MAGd,CAACZ,GAAGI,SAAS,cAAA,GAETS,UACJX,QAAQY,gBAAgB,SAAS,CAACZ,QAAQa,cAAc,CAACb,QAAQc,SAAS,CAACd,QAAQS,UAE/EM,cAAc;QAClBJ;QACAK,aAAa,CAAChB,QAAQS,YAAY,CAACT,QAAQa;QAC3CI,SAAS;QACTC,cAAc;QACd,GAAIR,kBACA;UACEQ,cAAc;UACdC,QAAQ;;UAERF,SAAS;QACX,IACA,CAAC;MACP,GAEMG,mBAAoB,WAAA;AACxB,YAAIpB,QAAQY,gBAAgB,YAAYZ,QAAQY,gBAAgB;AAC9D,iBAAO;YACLS,YAAY;YACZC,KAAK;cACHC,QAAQ;cACRhB;cACAlB,WAAW;gBACTmC,yBAAyB;gBACzBC,OAAOV;cACT;YACF;UACF;AAGF,YAAMW,qBACJ1B,QAAQ2B,OAAQ,CAACtB,QAAQuB,IAAIC,iCAAiCpC,oBAAoBqC,KAAK/B,IAAAA,GAEnFgC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AA,IAAzB1F,QAAQ,KAAA;AAEhD,SAAI0F,cAAc,UACZ5E,aACFF,SAASZ,QAAQ,MAAA,IAGfG,GAAGI,SAAS,mBAAA,MACdK,SAASZ,QAAQ,MAAA,KAIdY;AACT;AAEO,IAAM+E,uBAAuB,eAAOxF,IAAYC,MAAAA;AACrD,MAAMQ,SAASC,UAAUV,EAAAA;AACzB,MAAKS;AACL,WAAO,MAAMlB,UAAUU,MAAM;MAC3ByC,UAAU1C;MACV2C,OAAO;MACPC,YAAY;MACZrB,YAAYY,gBAAAA;MACZX,KAAK;QACHC,QAAQ;QACRhB;QACAlB,WAAW;UACTmC,yBAAyB;UACzBC,OAAO;YACLT,aAAa;YACbC,SAAS;YACTN,SAAS;UACX;QACF;MACF;IACF,CAAA;AACF;",
|
|
5
|
-
"names": ["transform", "extname", "merge", "configuration", "asyncGeneratorRegex", "debug", "parsers", "runtimePublicPath", "transformSWC", "id", "code", "options", "swcOptions", "includes", "split", "replace", "process", "cwd", "parser", "getParser", "forceJSX", "enableNativeCSS", "refresh", "environment", "production", "noHMR", "reactConfig", "development", "runtime", "importSource", "pragma", "transformOptions", "sourceMaps", "jsc", "target", "useDefineForClassFields", "react", "shouldEs5Transform", "es5", "env", "VXRN_USE_BABEL_FOR_GENERATORS", "test", "opts", "SWC_ENV", "shouldSourceMap", "module", "importInterop", "type", "mode", "strict", "finalOptions", "filename", "swcrc", "configFile", "result", "JSON", "stringify", "e", "message", "fileStartIndex", "indexOf", "match", "slice", "line", "column", "shouldHMR", "refreshContentRE", "fixNonTypeSpecificImports", "syntax", "typeExportsMatch", "Array", "from", "typeExport", "_export", "_type", "name", "startsWith", "alreadyExported", "RegExp", "fakeExport", "console", "info", "wrapSourceInRefreshRuntime", "targets", "node", "include", "exclude", "VXRN_ENABLE_SOURCE_MAP", "wrapSourceInRefreshRuntimeWeb", "wrapSourceInRefreshRuntimeNative", "sourceMap", "parse", "map", "mappings", "prefixCode", "endsWith", "extension", "transformSWCStripJSX"]
|
|
6
|
-
}
|
package/dist/esm/types.native.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|