@stencil/core 5.0.0-beta.34 → 5.0.0-beta.36
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/{client-UbH-XkYu.mjs → client-CqQpuOUk.mjs} +11 -2
- package/dist/compiler/browser.js +128 -14
- package/dist/compiler/index.d.mts +1 -1
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-CVL510L-.mjs → compiler-DHNkXDvK.mjs} +318 -33
- package/dist/declarations/stencil-public-compiler.d.ts +16 -0
- package/dist/declarations/stencil-public-runtime.d.ts +10 -0
- package/dist/{index-Da-rNa6f.d.mts → index-CIjtinKD.d.mts} +1 -1
- package/dist/{index-B0NfYeIA.d.mts → index-DG4wtfhx.d.mts} +16 -0
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-eg7pofz5.mjs → node-DwwBX_GL.mjs} +1 -1
- package/dist/runtime/client/lazy.js +11 -4
- package/dist/runtime/client/runtime.d.ts +18 -1
- package/dist/runtime/client/runtime.js +11 -4
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.js +11 -4
- package/dist/runtime/server/index.d.mts +16 -0
- package/dist/runtime/server/index.mjs +76 -8
- package/dist/runtime/server/runner.d.mts +39 -1
- package/dist/runtime/server/runner.mjs +230 -15
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.mjs +23 -5
- package/package.json +4 -4
|
@@ -146,7 +146,16 @@ const NODE_TYPE = {
|
|
|
146
146
|
DocumentTypeNode: 10,
|
|
147
147
|
DocumentFragment: 11
|
|
148
148
|
};
|
|
149
|
+
const HYDRATE_ID = "s-id";
|
|
149
150
|
const HYDRATED_STYLE_ID = "sty-id";
|
|
151
|
+
const HYDRATE_CHILD_ID = "c-id";
|
|
152
|
+
/**
|
|
153
|
+
* Starts an attribute value written by the `ssr` output's `ssrProp()` on a server: a reference to
|
|
154
|
+
* a value it put in the registry below, for the SSR runtime to take out and set as the prop.
|
|
155
|
+
*/
|
|
156
|
+
const SSR_PROP_REF_PREFIX = "__stencil_ssr_ref:";
|
|
157
|
+
/** `Symbol.for()` key of the `ssrProp()` registry on the server's real global object. */
|
|
158
|
+
const SSR_PROPS_REGISTRY_KEY = "stencil.ssrProps";
|
|
150
159
|
const HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
151
160
|
/**
|
|
152
161
|
* Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
|
|
@@ -804,7 +813,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
804
813
|
elm.dispatchEvent(ev);
|
|
805
814
|
return ev;
|
|
806
815
|
};
|
|
807
|
-
const getRegistry = () => customElements;
|
|
816
|
+
const getRegistry = () => globalThis.customElements;
|
|
808
817
|
/**
|
|
809
818
|
* @param elm a defined component host
|
|
810
819
|
* @returns the registry the host's class was defined in, else the active registry
|
|
@@ -2480,4 +2489,4 @@ function hasKeys(obj) {
|
|
|
2480
2489
|
return false;
|
|
2481
2490
|
}
|
|
2482
2491
|
//#endregion
|
|
2483
|
-
export { Build as C,
|
|
2492
|
+
export { SSR_PROP_REF_PREFIX as A, Build as C, HYDRATE_ID as D, HYDRATE_CHILD_ID as E, SERVER_BUILD_FLAGS as O, setErrorHandler as S, HYDRATED_CSS as T, getAssetPath as _, transformTag as a, writeTask as b, Mixin as c, Host as d, h as f, getShadowRoot as g, getElement as h, setTagTransformer as i, SSR_PROPS_REGISTRY_KEY as k, getMode as l, getRenderingRef as m, jsxDEV as n, render as o, forceUpdate as p, jsxs as r, ReactiveControllerHost as s, jsx as t, setMode as u, setAssetPath as v, CLIENT_BUILD_FLAGS as w, setPlatformHelpers as x, readTask as y };
|
package/dist/compiler/browser.js
CHANGED
|
@@ -1843,7 +1843,7 @@ const validateComponentTag = (tag) => {
|
|
|
1843
1843
|
};
|
|
1844
1844
|
//#endregion
|
|
1845
1845
|
//#region src/version.ts
|
|
1846
|
-
const version = "5.0.0-beta.
|
|
1846
|
+
const version = "5.0.0-beta.36";
|
|
1847
1847
|
//#endregion
|
|
1848
1848
|
//#region src/compiler/events.ts
|
|
1849
1849
|
const buildEvents = () => {
|
|
@@ -8879,6 +8879,9 @@ const objectLiteralToObjectMap = (objectLiteral, typeChecker, diagnostics, error
|
|
|
8879
8879
|
case ts$1.SyntaxKind.FalseKeyword:
|
|
8880
8880
|
val = false;
|
|
8881
8881
|
break;
|
|
8882
|
+
case ts$1.SyntaxKind.NullKeyword:
|
|
8883
|
+
val = null;
|
|
8884
|
+
break;
|
|
8882
8885
|
case ts$1.SyntaxKind.Identifier:
|
|
8883
8886
|
const escapedText = propAssignment.initializer.escapedText;
|
|
8884
8887
|
if (escapedText === "String") val = String;
|
|
@@ -9065,7 +9068,7 @@ const getAllTypeReferences = (checker, node) => {
|
|
|
9065
9068
|
*/
|
|
9066
9069
|
const getTypeReferenceLocation = (typeName, type, sourceFile, checker, program) => {
|
|
9067
9070
|
const importTypeDeclaration = sourceFile.statements.find((st) => {
|
|
9068
|
-
if (!(ts$1.isImportDeclaration(st) && st.importClause && ts$1.isImportClause(st.importClause) && st.importClause.namedBindings && ts$1.isNamedImports(st.importClause.namedBindings) && Array.isArray(st.importClause.namedBindings.elements) && st.importClause.namedBindings.elements.find((nbe) => nbe.name.
|
|
9071
|
+
if (!(ts$1.isImportDeclaration(st) && st.importClause && ts$1.isImportClause(st.importClause) && st.importClause.namedBindings && ts$1.isNamedImports(st.importClause.namedBindings) && Array.isArray(st.importClause.namedBindings.elements) && st.importClause.namedBindings.elements.find((nbe) => nbe.name.text === typeName))) return false;
|
|
9069
9072
|
return true;
|
|
9070
9073
|
});
|
|
9071
9074
|
const namedImportBindings = importTypeDeclaration?.importClause?.namedBindings;
|
|
@@ -9074,7 +9077,7 @@ const getTypeReferenceLocation = (typeName, type, sourceFile, checker, program)
|
|
|
9074
9077
|
const options = program.getCompilerOptions();
|
|
9075
9078
|
const importHomeModule = getHomeModule(sourceFile, localImportPath, options, ts$1.createCompilerHost(options), program);
|
|
9076
9079
|
if (importHomeModule) {
|
|
9077
|
-
const importElement = namedImportBindings.elements.find((nbe) => nbe.name.
|
|
9080
|
+
const importElement = namedImportBindings.elements.find((nbe) => nbe.name.text === typeName);
|
|
9078
9081
|
const importName = importElement.name;
|
|
9079
9082
|
const originalTypeName = getOriginalTypeName(importName, checker);
|
|
9080
9083
|
const importedAs = importElement.propertyName ? importElement.propertyName.getText() : typeName;
|
|
@@ -10498,7 +10501,7 @@ const performAutomaticKeyInsertion = (transformCtx) => {
|
|
|
10498
10501
|
* @returns the result of handling the node
|
|
10499
10502
|
*/
|
|
10500
10503
|
function findRenderMethodVisitor(node) {
|
|
10501
|
-
if (ts$1.isMethodDeclaration(node) && node.name
|
|
10504
|
+
if (ts$1.isMethodDeclaration(node) && ts$1.isIdentifier(node.name) && node.name.text === "render" && numReturnStatements(node) === 1) {
|
|
10502
10505
|
resetKeyCounter();
|
|
10503
10506
|
return ts$1.visitEachChild(node, jsxElementVisitor, transformCtx);
|
|
10504
10507
|
} else return ts$1.visitEachChild(node, findRenderMethodVisitor, transformCtx);
|
|
@@ -12454,8 +12457,8 @@ var ImportAliasMap = class extends Map {
|
|
|
12454
12457
|
for (const importDeclaration of importDeclarations) if (importDeclaration.moduleSpecifier.getText().includes("@stencil/core")) {
|
|
12455
12458
|
const namedBindings = importDeclaration.importClause?.namedBindings;
|
|
12456
12459
|
if (namedBindings && ts$1.isNamedImports(namedBindings)) for (const element of namedBindings.elements) {
|
|
12457
|
-
const importName = element.name.
|
|
12458
|
-
const originalImportName = element.propertyName?.
|
|
12460
|
+
const importName = element.name.text;
|
|
12461
|
+
const originalImportName = element.propertyName?.text ?? importName;
|
|
12459
12462
|
if (STENCIL_DECORATORS.includes(originalImportName)) this.set(originalImportName, importName);
|
|
12460
12463
|
}
|
|
12461
12464
|
}
|
|
@@ -12465,6 +12468,102 @@ var ImportAliasMap = class extends Map {
|
|
|
12465
12468
|
}
|
|
12466
12469
|
};
|
|
12467
12470
|
//#endregion
|
|
12471
|
+
//#region src/compiler/transformers/decorators-to-static/json-serialize-prop.ts
|
|
12472
|
+
/**
|
|
12473
|
+
* `@Prop({ serialize: 'json' })` is shorthand for a `@PropSerialize()` / `@AttrDeserialize()` pair
|
|
12474
|
+
* that writes the value to the prop's attribute as JSON on the server, and reads it back in the
|
|
12475
|
+
* browser. These are the generated methods' names (no leading `_`: the runtime metadata drops
|
|
12476
|
+
* those keys), and the alias of the `Build` import they use.
|
|
12477
|
+
*/
|
|
12478
|
+
const JSON_SERIALIZE_METHOD = "stencilSerializeJson";
|
|
12479
|
+
const JSON_DESERIALIZE_METHOD = "stencilDeserializeJson";
|
|
12480
|
+
const BUILD_ALIAS = "__stencil_Build";
|
|
12481
|
+
/**
|
|
12482
|
+
* Find the props declared `@Prop({ serialize: 'json' })`, reporting invalid combinations.
|
|
12483
|
+
* @param diagnostics for surfacing errors
|
|
12484
|
+
* @param typeChecker a TypeScript typechecker instance
|
|
12485
|
+
* @param decoratedMembers the class's decorated members
|
|
12486
|
+
* @param propDecoratorName the name `@Prop` is imported as
|
|
12487
|
+
* @param handWritten serializers and deserializers written with the decorators
|
|
12488
|
+
* @returns the names of the props to serialize as JSON
|
|
12489
|
+
*/
|
|
12490
|
+
const getJsonSerializedProps = (diagnostics, typeChecker, decoratedMembers, propDecoratorName, handWritten) => decoratedMembers.flatMap((member) => {
|
|
12491
|
+
if (!ts$1.isPropertyDeclaration(member) && !ts$1.isGetAccessor(member)) return [];
|
|
12492
|
+
const decorator = retrieveTsDecorators(member)?.find(isDecoratorNamed(propDecoratorName));
|
|
12493
|
+
if (!decorator) return [];
|
|
12494
|
+
const [options] = getDecoratorParameters(decorator, typeChecker);
|
|
12495
|
+
if (options?.serialize == null) return [];
|
|
12496
|
+
const { staticName: propName } = tsPropDeclName(member, typeChecker);
|
|
12497
|
+
const error = (messageText) => {
|
|
12498
|
+
const err = buildError(diagnostics);
|
|
12499
|
+
err.messageText = messageText;
|
|
12500
|
+
augmentDiagnosticWithNode(err, decorator);
|
|
12501
|
+
};
|
|
12502
|
+
if (options.serialize !== "json") {
|
|
12503
|
+
error(`@Prop({ serialize }) on "${propName}" must be 'json'. For other formats, use @PropSerialize() and @AttrDeserialize().`);
|
|
12504
|
+
return [];
|
|
12505
|
+
}
|
|
12506
|
+
if (options.attribute === null) {
|
|
12507
|
+
error(`@Prop({ serialize: 'json' }) on "${propName}" needs an attribute to write to, but it has "attribute: null".`);
|
|
12508
|
+
return [];
|
|
12509
|
+
}
|
|
12510
|
+
if (handWritten.some((h) => h.propName === propName)) {
|
|
12511
|
+
error(`"${propName}" has both @Prop({ serialize: 'json' }) and its own @PropSerialize() / @AttrDeserialize(). Use one or the other.`);
|
|
12512
|
+
return [];
|
|
12513
|
+
}
|
|
12514
|
+
return [propName];
|
|
12515
|
+
});
|
|
12516
|
+
/**
|
|
12517
|
+
* The methods `@Prop({ serialize: 'json' })` uses, shared by every such prop in a class:
|
|
12518
|
+
*
|
|
12519
|
+
* ```ts
|
|
12520
|
+
* stencilSerializeJson(value) {
|
|
12521
|
+
* return __stencil_Build.isServer ? JSON.stringify(value) : null;
|
|
12522
|
+
* }
|
|
12523
|
+
* stencilDeserializeJson(value, propName) {
|
|
12524
|
+
* try {
|
|
12525
|
+
* return JSON.parse(value);
|
|
12526
|
+
* } catch {
|
|
12527
|
+
* if (__stencil_Build.isDev) console.warn(...);
|
|
12528
|
+
* // leave the prop as it is
|
|
12529
|
+
* return __stencil_Build.isServer ? undefined : this[propName];
|
|
12530
|
+
* }
|
|
12531
|
+
* }
|
|
12532
|
+
* ```
|
|
12533
|
+
*
|
|
12534
|
+
* The serializer only writes on the server, like a hand-written one should: in the browser the
|
|
12535
|
+
* attribute's job is done, and rewriting it on every change would be wasted work.
|
|
12536
|
+
* @returns the two method declarations
|
|
12537
|
+
*/
|
|
12538
|
+
const createJsonSerializerMethods = () => {
|
|
12539
|
+
const f = ts$1.factory;
|
|
12540
|
+
const build = (flag) => f.createPropertyAccessExpression(f.createIdentifier(BUILD_ALIAS), flag);
|
|
12541
|
+
const jsonCall = (method, arg) => f.createCallExpression(f.createPropertyAccessExpression(f.createIdentifier("JSON"), method), void 0, [arg]);
|
|
12542
|
+
const param = (name) => f.createParameterDeclaration(void 0, void 0, name);
|
|
12543
|
+
const method = (name, params, body) => f.createMethodDeclaration(void 0, void 0, name, void 0, void 0, params.map(param), void 0, f.createBlock(body, true));
|
|
12544
|
+
const serialize = method(JSON_SERIALIZE_METHOD, ["value"], [f.createReturnStatement(f.createConditionalExpression(build("isServer"), void 0, jsonCall("stringify", f.createIdentifier("value")), void 0, f.createNull()))]);
|
|
12545
|
+
const warn = f.createIfStatement(build("isDev"), f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(f.createIdentifier("console"), "warn"), void 0, [f.createTemplateExpression(f.createTemplateHead("The \""), [f.createTemplateSpan(f.createIdentifier("propName"), f.createTemplateMiddle(`" attribute isn't valid JSON, so the prop was left as it is: `)), f.createTemplateSpan(f.createIdentifier("value"), f.createTemplateTail(""))])])));
|
|
12546
|
+
return [serialize, method(JSON_DESERIALIZE_METHOD, ["value", "propName"], [f.createTryStatement(f.createBlock([f.createReturnStatement(jsonCall("parse", f.createIdentifier("value")))], true), f.createCatchClause(void 0, f.createBlock([warn, f.createReturnStatement(f.createConditionalExpression(build("isServer"), void 0, f.createIdentifier("undefined"), void 0, f.createElementAccessExpression(f.createThis(), f.createIdentifier("propName"))))], true)), void 0)])];
|
|
12547
|
+
};
|
|
12548
|
+
/**
|
|
12549
|
+
* Import `Build` (as {@link BUILD_ALIAS}) from `@stencil/core`, for the generated methods. Added
|
|
12550
|
+
* to an existing `@stencil/core` import, which a component's source always has.
|
|
12551
|
+
* @param sourceFile the source file
|
|
12552
|
+
* @returns the source file with the import
|
|
12553
|
+
*/
|
|
12554
|
+
const addBuildImport = (sourceFile) => {
|
|
12555
|
+
const f = ts$1.factory;
|
|
12556
|
+
const specifier = f.createImportSpecifier(false, f.createIdentifier("Build"), f.createIdentifier(BUILD_ALIAS));
|
|
12557
|
+
let added = false;
|
|
12558
|
+
const statements = sourceFile.statements.map((s) => {
|
|
12559
|
+
if (added || !ts$1.isImportDeclaration(s) || !ts$1.isStringLiteral(s.moduleSpecifier) || s.moduleSpecifier.text !== "@stencil/core" || !s.importClause?.namedBindings || !ts$1.isNamedImports(s.importClause.namedBindings) || s.importClause.isTypeOnly) return s;
|
|
12560
|
+
added = true;
|
|
12561
|
+
return f.updateImportDeclaration(s, s.modifiers, f.updateImportClause(s.importClause, false, s.importClause.name, f.updateNamedImports(s.importClause.namedBindings, [...s.importClause.namedBindings.elements, specifier])), s.moduleSpecifier, s.attributes);
|
|
12562
|
+
});
|
|
12563
|
+
if (!added) statements.unshift(f.createImportDeclaration(void 0, f.createImportClause(false, void 0, f.createNamedImports([specifier])), f.createStringLiteral(STENCIL_CORE_ID)));
|
|
12564
|
+
return f.updateSourceFile(sourceFile, statements);
|
|
12565
|
+
};
|
|
12566
|
+
//#endregion
|
|
12468
12567
|
//#region src/compiler/transformers/decorators-to-static/listen-decorator.ts
|
|
12469
12568
|
const listenDecoratorsToStatic = (diagnostics, typeChecker, decoratedMembers, newMembers, decoratorName) => {
|
|
12470
12569
|
const listeners = decoratedMembers.filter(ts$1.isMethodDeclaration).map((method) => parseListenDecorators(diagnostics, typeChecker, method, decoratorName));
|
|
@@ -12878,7 +12977,7 @@ const isTypePromise = (typeStr) => {
|
|
|
12878
12977
|
};
|
|
12879
12978
|
const validateMethods = (diagnostics, members) => {
|
|
12880
12979
|
members.filter(ts$1.isMethodDeclaration).map((method) => {
|
|
12881
|
-
if (method.name
|
|
12980
|
+
if (ts$1.isIdentifier(method.name) && method.name.text === "componentDidUnload") {
|
|
12882
12981
|
const err = buildError(diagnostics);
|
|
12883
12982
|
err.header = `Replace "componentDidUnload()" with "disconnectedCallback()"`;
|
|
12884
12983
|
err.messageText = `The "componentDidUnload()" method was removed in Stencil 2. Please use the "disconnectedCallback()" method instead.`;
|
|
@@ -13243,7 +13342,7 @@ const getPropertyNameText = (name) => {
|
|
|
13243
13342
|
};
|
|
13244
13343
|
//#endregion
|
|
13245
13344
|
//#region src/compiler/transformers/decorators-to-static/serialize-decorators.ts
|
|
13246
|
-
const serializeDecoratorsToStatic = (typeChecker, decoratedProps, newMembers, decoratorName, translateType, propDecoratorName) => {
|
|
13345
|
+
const serializeDecoratorsToStatic = (typeChecker, decoratedProps, newMembers, decoratorName, translateType, propDecoratorName, generated = []) => {
|
|
13247
13346
|
const props = decoratedProps.filter((prop) => ts$1.isPropertyDeclaration(prop) || ts$1.isGetAccessor(prop)).flatMap((prop) => {
|
|
13248
13347
|
if (retrieveTsDecorators(prop)?.find(isDecoratorNamed(propDecoratorName))) {
|
|
13249
13348
|
const { staticName } = tsPropDeclName(prop, typeChecker);
|
|
@@ -13251,7 +13350,7 @@ const serializeDecoratorsToStatic = (typeChecker, decoratedProps, newMembers, de
|
|
|
13251
13350
|
}
|
|
13252
13351
|
return [];
|
|
13253
13352
|
});
|
|
13254
|
-
const serializers = decoratedProps.filter(ts$1.isMethodDeclaration).flatMap((method) => parseSerializeDecorator(typeChecker, method, decoratorName, props));
|
|
13353
|
+
const serializers = [...decoratedProps.filter(ts$1.isMethodDeclaration).flatMap((method) => parseSerializeDecorator(typeChecker, method, decoratorName, props)), ...generated];
|
|
13255
13354
|
if (serializers.length > 0) {
|
|
13256
13355
|
if (translateType === "PropSerialize") newMembers.push(createStaticGetter("serializers", convertValueToLiteral(serializers)));
|
|
13257
13356
|
else newMembers.push(createStaticGetter("deserializers", convertValueToLiteral(serializers)));
|
|
@@ -13351,6 +13450,8 @@ const parseWatchDecorator = (typeChecker, method, decoratorName) => {
|
|
|
13351
13450
|
* @returns a TypeScript transformer factory which can be passed to
|
|
13352
13451
|
* TypeScript to transform source code during the compilation process
|
|
13353
13452
|
*/
|
|
13453
|
+
/** Source files with a `@Prop({ serialize: 'json' })`, which need a `Build` import. */
|
|
13454
|
+
const filesWithJsonProps = /* @__PURE__ */ new WeakSet();
|
|
13354
13455
|
const convertDecoratorsToStatic = (config, diagnostics, typeChecker, program, includeClassExpressions = false) => {
|
|
13355
13456
|
return (transformCtx) => {
|
|
13356
13457
|
let sourceFile;
|
|
@@ -13360,7 +13461,8 @@ const convertDecoratorsToStatic = (config, diagnostics, typeChecker, program, in
|
|
|
13360
13461
|
};
|
|
13361
13462
|
return (tsSourceFile) => {
|
|
13362
13463
|
sourceFile = tsSourceFile;
|
|
13363
|
-
|
|
13464
|
+
const updated = ts$1.visitEachChild(tsSourceFile, visit, transformCtx);
|
|
13465
|
+
return filesWithJsonProps.has(tsSourceFile) ? addBuildImport(updated) : updated;
|
|
13364
13466
|
};
|
|
13365
13467
|
};
|
|
13366
13468
|
};
|
|
@@ -13398,8 +13500,20 @@ const visitClassDeclaration = (config, diagnostics, typeChecker, program, classN
|
|
|
13398
13500
|
const filteredMethodsAndFields = removeStencilMethodDecorators(Array.from(classMembers), diagnostics, importAliasMap);
|
|
13399
13501
|
if (componentDecorator && ts$1.isClassDeclaration(classNode)) componentDecoratorToStatic(config, typeChecker, diagnostics, classNode, filteredMethodsAndFields, componentDecorator);
|
|
13400
13502
|
if (decoratedMembers.length > 0) {
|
|
13401
|
-
const
|
|
13402
|
-
const
|
|
13503
|
+
const handWritten = serializeDecoratorsToStatic(typeChecker, decoratedMembers, [], importAliasMap.get("PropSerialize"), "PropSerialize", importAliasMap.get("Prop")).concat(serializeDecoratorsToStatic(typeChecker, decoratedMembers, [], importAliasMap.get("AttrDeserialize"), "AttrDeserialize", importAliasMap.get("Prop")));
|
|
13504
|
+
const jsonProps = getJsonSerializedProps(diagnostics, typeChecker, decoratedMembers, importAliasMap.get("Prop"), handWritten);
|
|
13505
|
+
if (jsonProps.length > 0) {
|
|
13506
|
+
filteredMethodsAndFields.push(...createJsonSerializerMethods());
|
|
13507
|
+
filesWithJsonProps.add(sourceFile);
|
|
13508
|
+
}
|
|
13509
|
+
const serializers = serializeDecoratorsToStatic(typeChecker, decoratedMembers, filteredMethodsAndFields, importAliasMap.get("PropSerialize"), "PropSerialize", importAliasMap.get("Prop"), jsonProps.map((propName) => ({
|
|
13510
|
+
propName,
|
|
13511
|
+
methodName: JSON_SERIALIZE_METHOD
|
|
13512
|
+
})));
|
|
13513
|
+
const deserializers = serializeDecoratorsToStatic(typeChecker, decoratedMembers, filteredMethodsAndFields, importAliasMap.get("AttrDeserialize"), "AttrDeserialize", importAliasMap.get("Prop"), jsonProps.map((propName) => ({
|
|
13514
|
+
propName,
|
|
13515
|
+
methodName: JSON_DESERIALIZE_METHOD
|
|
13516
|
+
})));
|
|
13403
13517
|
propDecoratorsToStatic(config, diagnostics, decoratedMembers, typeChecker, program, filteredMethodsAndFields, importAliasMap.get("Prop"), serializers, deserializers);
|
|
13404
13518
|
stateDecoratorsToStatic(decoratedMembers, filteredMethodsAndFields, typeChecker, importAliasMap.get("State"));
|
|
13405
13519
|
eventDecoratorsToStatic(config, diagnostics, decoratedMembers, typeChecker, program, filteredMethodsAndFields, importAliasMap.get("Event"));
|
|
@@ -16000,9 +16114,9 @@ const updateStencilCoreImports = (updatedCoreImportPath) => {
|
|
|
16000
16114
|
}
|
|
16001
16115
|
if (moduleSpecifierText === "@stencil/core") {
|
|
16002
16116
|
if (s.importClause && s.importClause.namedBindings && s.importClause.namedBindings.kind === ts$1.SyntaxKind.NamedImports) {
|
|
16003
|
-
const keepImports = s.importClause.namedBindings.elements.
|
|
16117
|
+
const keepImports = s.importClause.namedBindings.elements.filter((e) => KEEP_IMPORTS.has((e.propertyName ?? e.name).text));
|
|
16004
16118
|
if (keepImports.length > 0) {
|
|
16005
|
-
const newImport = ts$1.factory.updateImportDeclaration(s, void 0, ts$1.factory.createImportClause(false, void 0, ts$1.factory.createNamedImports(keepImports.map((
|
|
16119
|
+
const newImport = ts$1.factory.updateImportDeclaration(s, void 0, ts$1.factory.createImportClause(false, void 0, ts$1.factory.createNamedImports(keepImports.map((e) => ts$1.factory.createImportSpecifier(false, e.propertyName ? ts$1.factory.createIdentifier(e.propertyName.text) : void 0, ts$1.factory.createIdentifier(e.name.text))))), ts$1.factory.createStringLiteral(updatedCoreImportPath), void 0);
|
|
16006
16120
|
newStatements.push(newImport);
|
|
16007
16121
|
}
|
|
16008
16122
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CompilerFsStats, $n as WorkerMainController, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrFactoryOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsStyle, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsValue, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsUsage, Et as FsWatchResults, F as Compiler, Fn as SerializeDocumentOptions, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as TransformOptions, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilDevServerConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as ServiceWorkerConfig, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileResults, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TranspileOnlyResults, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as SitemapXmpOpts, Lt as LoadConfigInit, M as CliInitOptions, Mn as RobotsTxtOpts, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtResults, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as StyleDoc, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RolldownConfig, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as WatcherCloseResults, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpResults, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsSlot, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTypeLibrary, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDocsConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as StencilConfig, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as SystemDetails, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as ValidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as UnvalidatedConfig, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedOutputTargetWww, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsListener, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsPart, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dr as JsonDocMethodParameter, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerOptions, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocs, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsEvent, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsDependencyGraph, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleOptions, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveModuleIdOptions, kr as FsWriteResults, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lr as UserBuildConditionals, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsCustomState, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocsComponent, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOptions, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsMethod, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsTag, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsProp, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethodReturn, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SsrDocumentOptions, zt as LogLevel } from "../index-
|
|
1
|
+
import { $ as CompilerFsStats, $n as WorkerMainController, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrFactoryOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsStyle, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsValue, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsUsage, Et as FsWatchResults, F as Compiler, Fn as SerializeDocumentOptions, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as TransformOptions, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilDevServerConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as ServiceWorkerConfig, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileResults, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TranspileOnlyResults, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as SitemapXmpOpts, Lt as LoadConfigInit, M as CliInitOptions, Mn as RobotsTxtOpts, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtResults, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as StyleDoc, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RolldownConfig, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as WatcherCloseResults, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpResults, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsSlot, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTypeLibrary, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDocsConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as StencilConfig, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as SystemDetails, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as ValidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as UnvalidatedConfig, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedOutputTargetWww, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsListener, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsPart, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dr as JsonDocMethodParameter, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerOptions, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocs, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsEvent, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsDependencyGraph, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleOptions, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveModuleIdOptions, kr as FsWriteResults, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lr as UserBuildConditionals, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsCustomState, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocsComponent, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOptions, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsMethod, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsTag, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsProp, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethodReturn, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SsrDocumentOptions, zt as LogLevel } from "../index-DG4wtfhx.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Plugin as Plugin$1 } from "rolldown";
|
|
4
4
|
//#region src/version.d.ts
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
1
|
+
import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-DHNkXDvK.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-DwwBX_GL.mjs";
|
|
3
3
|
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $i as COPY, $r as filterActiveTargets, Ai as buildJsonFileError, Ar as ModeValidationError, Bi as loadTypeScriptDiagnostic, Br as isJsFile, Ca as SVG_NS, Ci as isOutputTargetTypes, Da as WWW, Di as shouldExcludeComponent, Ea as WATCH_FLAGS, Ei as relativeImport, Fi as shouldIgnoreError, Fr as createJsVarName, Gi as formatComponentRuntimeMeta, Gr as readOnlyArrayHasStringMember, Hi as createOnWarnFn, Hr as isTsFile, Ii as escapeHtml, Ir as generatePreamble, Ji as ASSETS, Jr as getSourceMappingUrlForEndOfFile, Ki as formatLazyBundleRuntimeMeta, Kr as readPackageJson, Li as normalizeDiagnostics, Lr as getTextDocs, Mi as catchError, Mr as validateComponentTag, Ni as hasError, Nr as ParsePackageJsonResult, Oa as XLINK_NS, Oi as TASK_CANCELED_MSG, Pi as hasWarning, Pr as addDocBlock, Qi as COLLECTION_MANIFEST_FILE_NAME, Qr as FilterComponentsResult, Ri as splitLineBreaks, Rr as hasDependency, Sa as STYLE_EXT, Si as isOutputTargetStats, Ta as VALID_CONFIG_OUTPUT_TARGETS, Ti as isValidConfigOutputTarget, Ui as isRolldownError, Ur as isTsxFile, Vi as loadTypeScriptDiagnostics, Vr as isJsxFile, Wi as loadRolldownDiagnostics, Wr as parsePackageJson, Xi as COLLECTION, Xr as rolldownToStencilSourceMap, Yi as CMP_FLAGS, Yr as getSourceMappingUrlLinker, Zi as COLLECTION_APP_DATA_FILE_NAME, Zr as result_d_exports, _a as NODE_TYPES, _i as isOutputTargetLoaderBundle, aa as DOCS_CUSTOM_ELEMENTS_MANIFEST, ai as isOutputTargetCollection, ba as STANDALONE, bi as isOutputTargetSsrWasm, ca as DOCS_VSCODE, ci as isOutputTargetDistLazy, da as GLOBAL_STYLE, di as isOutputTargetDocsCustom, ea as CUSTOM, ei as filterExcludedComponents, fa as HOST_FLAGS, fi as isOutputTargetDocsCustomElementsManifest, ga as MEMBER_FLAGS, gi as isOutputTargetGlobalStyle, ha as LOADER_BUNDLE, hi as isOutputTargetDocsVscode, ia as DOCS_CUSTOM, ii as isOutputTargetAssets, ji as buildWarn, jr as validateComponentModes, ki as buildError, la as EVENT_FLAGS, li as isOutputTargetDocs, ma as LISTENER_FLAGS, mi as isOutputTargetDocsReadme, na as DIST_LAZY, ni as getComponentsDtsTypesFilePath, oa as DOCS_JSON, oi as isOutputTargetCopy, pa as HTML_NS, pi as isOutputTargetDocsJson, qi as stringifyRuntimeData, qr as getInlineSourceMappingUrlLinker, ra as DOCS_AGENT_SKILL, ri as getComponentsFromModules, sa as DOCS_README, si as isOutputTargetCustom, ta as DEFAULT_STYLE_MODE, ti as getComponentsDtsSrcFilePath, ua as GENERATED_DTS, ui as isOutputTargetDocsAgentSkill, va as SSR, vi as isOutputTargetServerRenderer, wa as TYPES, wi as isOutputTargetWww, xa as STATS, xi as isOutputTargetStandalone, ya as SSR_WASM, yi as isOutputTargetSsr, zi as augmentDiagnosticWithNode, zr as isDtsFile } from "../../index-
|
|
1
|
+
import { $i as COPY, $r as filterActiveTargets, Ai as buildJsonFileError, Ar as ModeValidationError, Bi as loadTypeScriptDiagnostic, Br as isJsFile, Ca as SVG_NS, Ci as isOutputTargetTypes, Da as WWW, Di as shouldExcludeComponent, Ea as WATCH_FLAGS, Ei as relativeImport, Fi as shouldIgnoreError, Fr as createJsVarName, Gi as formatComponentRuntimeMeta, Gr as readOnlyArrayHasStringMember, Hi as createOnWarnFn, Hr as isTsFile, Ii as escapeHtml, Ir as generatePreamble, Ji as ASSETS, Jr as getSourceMappingUrlForEndOfFile, Ki as formatLazyBundleRuntimeMeta, Kr as readPackageJson, Li as normalizeDiagnostics, Lr as getTextDocs, Mi as catchError, Mr as validateComponentTag, Ni as hasError, Nr as ParsePackageJsonResult, Oa as XLINK_NS, Oi as TASK_CANCELED_MSG, Pi as hasWarning, Pr as addDocBlock, Qi as COLLECTION_MANIFEST_FILE_NAME, Qr as FilterComponentsResult, Ri as splitLineBreaks, Rr as hasDependency, Sa as STYLE_EXT, Si as isOutputTargetStats, Ta as VALID_CONFIG_OUTPUT_TARGETS, Ti as isValidConfigOutputTarget, Ui as isRolldownError, Ur as isTsxFile, Vi as loadTypeScriptDiagnostics, Vr as isJsxFile, Wi as loadRolldownDiagnostics, Wr as parsePackageJson, Xi as COLLECTION, Xr as rolldownToStencilSourceMap, Yi as CMP_FLAGS, Yr as getSourceMappingUrlLinker, Zi as COLLECTION_APP_DATA_FILE_NAME, Zr as result_d_exports, _a as NODE_TYPES, _i as isOutputTargetLoaderBundle, aa as DOCS_CUSTOM_ELEMENTS_MANIFEST, ai as isOutputTargetCollection, ba as STANDALONE, bi as isOutputTargetSsrWasm, ca as DOCS_VSCODE, ci as isOutputTargetDistLazy, da as GLOBAL_STYLE, di as isOutputTargetDocsCustom, ea as CUSTOM, ei as filterExcludedComponents, fa as HOST_FLAGS, fi as isOutputTargetDocsCustomElementsManifest, ga as MEMBER_FLAGS, gi as isOutputTargetGlobalStyle, ha as LOADER_BUNDLE, hi as isOutputTargetDocsVscode, ia as DOCS_CUSTOM, ii as isOutputTargetAssets, ji as buildWarn, jr as validateComponentModes, ki as buildError, la as EVENT_FLAGS, li as isOutputTargetDocs, ma as LISTENER_FLAGS, mi as isOutputTargetDocsReadme, na as DIST_LAZY, ni as getComponentsDtsTypesFilePath, oa as DOCS_JSON, oi as isOutputTargetCopy, pa as HTML_NS, pi as isOutputTargetDocsJson, qi as stringifyRuntimeData, qr as getInlineSourceMappingUrlLinker, ra as DOCS_AGENT_SKILL, ri as getComponentsFromModules, sa as DOCS_README, si as isOutputTargetCustom, ta as DEFAULT_STYLE_MODE, ti as getComponentsDtsSrcFilePath, ua as GENERATED_DTS, ui as isOutputTargetDocsAgentSkill, va as SSR, vi as isOutputTargetServerRenderer, wa as TYPES, wi as isOutputTargetWww, xa as STATS, xi as isOutputTargetStandalone, ya as SSR_WASM, yi as isOutputTargetSsr, zi as augmentDiagnosticWithNode, zr as isDtsFile } from "../../index-DG4wtfhx.mjs";
|
|
2
2
|
//#region src/utils/byte-size.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Used to learn the size of a string in bytes.
|