@stencil/core 5.0.0-alpha.3 → 5.0.0-alpha.5
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-CSm3x5ke.mjs → client-Dnio47yQ.mjs} +108 -19
- package/dist/compiler/index.d.mts +2 -2
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-D6iP7Bzb.mjs → compiler-Dxri2g8Z.mjs} +14994 -14303
- package/dist/declarations/stencil-public-compiler.d.ts +342 -132
- package/dist/declarations/stencil-public-compiler.js +2 -3
- package/dist/declarations/stencil-public-runtime.d.ts +2 -0
- package/dist/{index-hS-KBdAP.d.ts → index-D-XN9HW_.d.ts} +1 -1
- package/dist/{index-tUR6pD3J.d.mts → index-D5zaocDq.d.mts} +411 -189
- package/dist/{index-CyrGY82h.d.ts → index-D61XZw0f.d.ts} +2 -2
- package/dist/{index-CXHCTQNt.d.mts → index-Dat4djoo.d.mts} +5 -1
- package/dist/index.mjs +1 -1
- package/dist/{jsx-runtime-DlDkTqps.d.ts → jsx-runtime-B3vQbWIW.d.ts} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/{node-Bg-mO5dw.mjs → node-pj6rF4Wt.mjs} +66 -69
- package/dist/{regular-expression-D5pGVpCu.mjs → regular-expression-D0_N0PGa.mjs} +44 -26
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/client/index.d.ts +45 -8
- package/dist/runtime/client/index.js +132 -40
- package/dist/runtime/index.d.ts +33 -5
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/server/index.d.mts +72 -28
- package/dist/runtime/server/index.mjs +146 -46
- package/dist/runtime/server/runner.d.mts +40 -26
- package/dist/runtime/server/runner.mjs +28 -22
- package/dist/{runtime-BBCnuprF.js → runtime-CKyUrF4i.js} +131 -39
- 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.d.mts +2 -2
- package/dist/testing/index.mjs +17 -16
- package/dist/{validation-Byxie0Uk.mjs → validation-BA8nzXu_.mjs} +82 -58
- package/package.json +11 -12
package/dist/testing/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as BUILD, E as reWireGetterSetter, V as Env, _ as getElement, a as Mixin, b as setAssetPath, c as forceUpdate, d as createEvent, f as getMode, g as h, h as Host, l as getRenderingRef, o as Fragment, s as bootstrapLazy, t as insertVdomAnnotations, u as renderVdom, y as getAssetPath } from "../client-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as getBuildFeatures, c as createWorkerContext,
|
|
4
|
-
import { St as formatLazyBundleRuntimeMeta } from "../validation-
|
|
5
|
-
import { o as buildEvents } from "../node-
|
|
6
|
-
import
|
|
7
|
-
import path
|
|
1
|
+
import { B as BUILD, E as reWireGetterSetter, V as Env, _ as getElement, a as Mixin, b as setAssetPath, c as forceUpdate, d as createEvent, f as getMode, g as h, h as Host, l as getRenderingRef, o as Fragment, s as bootstrapLazy, t as insertVdomAnnotations, u as renderVdom, y as getAssetPath } from "../client-Dnio47yQ.mjs";
|
|
2
|
+
import { F as EVENT_FLAGS, h as noop, w as CMP_FLAGS } from "../regular-expression-D0_N0PGa.mjs";
|
|
3
|
+
import { _ as getBuildFeatures, c as createWorkerContext, g as BuildContext, h as Cache, i as createSystem, p as createInMemoryFs } from "../compiler-Dxri2g8Z.mjs";
|
|
4
|
+
import { St as formatLazyBundleRuntimeMeta } from "../validation-BA8nzXu_.mjs";
|
|
5
|
+
import { o as buildEvents } from "../node-pj6rF4Wt.mjs";
|
|
6
|
+
import nodePath from "node:path";
|
|
7
|
+
import path from "path";
|
|
8
8
|
import { MockWindow, setupGlobal } from "@stencil/mock-doc";
|
|
9
9
|
import { createHash } from "crypto";
|
|
10
10
|
import { afterAll, vi } from "vitest";
|
|
@@ -86,7 +86,7 @@ const createTestingSystem = () => {
|
|
|
86
86
|
let diskReads = 0;
|
|
87
87
|
let diskWrites = 0;
|
|
88
88
|
const sys = createSystem();
|
|
89
|
-
sys.platformPath = path
|
|
89
|
+
sys.platformPath = path;
|
|
90
90
|
sys.generateContentHash = (content, length) => {
|
|
91
91
|
let hash = createHash("sha1").update(content).digest("hex").toLowerCase();
|
|
92
92
|
if (typeof length === "number") hash = hash.slice(0, length);
|
|
@@ -260,7 +260,7 @@ const mockComponentMeta = (overrides = {}) => ({
|
|
|
260
260
|
*/
|
|
261
261
|
function mockValidatedConfig(overrides = {}) {
|
|
262
262
|
const baseConfig = mockConfig(overrides);
|
|
263
|
-
const rootDir =
|
|
263
|
+
const rootDir = nodePath.resolve("/");
|
|
264
264
|
return {
|
|
265
265
|
...baseConfig,
|
|
266
266
|
cacheDir: ".stencil",
|
|
@@ -277,7 +277,7 @@ function mockValidatedConfig(overrides = {}) {
|
|
|
277
277
|
minifyJs: false,
|
|
278
278
|
namespace: "Testing",
|
|
279
279
|
outputTargets: baseConfig.outputTargets ?? [],
|
|
280
|
-
packageJsonFilePath:
|
|
280
|
+
packageJsonFilePath: nodePath.join(rootDir, "package.json"),
|
|
281
281
|
rootDir,
|
|
282
282
|
sourceMap: true,
|
|
283
283
|
srcDir: "/src",
|
|
@@ -289,7 +289,6 @@ function mockValidatedConfig(overrides = {}) {
|
|
|
289
289
|
inputOptions: {},
|
|
290
290
|
outputOptions: {}
|
|
291
291
|
},
|
|
292
|
-
validatePrimaryPackageOutputTarget: false,
|
|
293
292
|
...overrides
|
|
294
293
|
};
|
|
295
294
|
}
|
|
@@ -301,14 +300,13 @@ function mockValidatedConfig(overrides = {}) {
|
|
|
301
300
|
* @returns the mock Stencil configuration
|
|
302
301
|
*/
|
|
303
302
|
function mockConfig(overrides = {}) {
|
|
304
|
-
const rootDir =
|
|
303
|
+
const rootDir = nodePath.resolve("/");
|
|
305
304
|
let { sys } = overrides;
|
|
306
305
|
if (!sys) sys = createTestingSystem();
|
|
307
306
|
sys.getCurrentDirectory = () => rootDir;
|
|
308
307
|
return {
|
|
309
308
|
_isTesting: true,
|
|
310
309
|
buildAppCore: false,
|
|
311
|
-
buildDist: true,
|
|
312
310
|
bundles: null,
|
|
313
311
|
devMode: true,
|
|
314
312
|
enableCache: false,
|
|
@@ -366,7 +364,7 @@ function mockCompilerCtx(config) {
|
|
|
366
364
|
activeFilesUpdated: [],
|
|
367
365
|
addWatchDir: noop,
|
|
368
366
|
addWatchFile: noop,
|
|
369
|
-
|
|
367
|
+
globalStyleCache: /* @__PURE__ */ new Map(),
|
|
370
368
|
changedFiles: /* @__PURE__ */ new Set(),
|
|
371
369
|
changedModules: /* @__PURE__ */ new Set(),
|
|
372
370
|
collections: [],
|
|
@@ -383,11 +381,14 @@ function mockCompilerCtx(config) {
|
|
|
383
381
|
reset: noop,
|
|
384
382
|
resolvedCollections: /* @__PURE__ */ new Set(),
|
|
385
383
|
rolldownCache: /* @__PURE__ */ new Map(),
|
|
386
|
-
|
|
384
|
+
rolldownCacheSsr: null,
|
|
387
385
|
rolldownCacheLazy: null,
|
|
388
386
|
rolldownCacheNative: null,
|
|
387
|
+
transpileCache: /* @__PURE__ */ new Map(),
|
|
388
|
+
prevStylesMap: /* @__PURE__ */ new Map(),
|
|
389
389
|
styleModeNames: /* @__PURE__ */ new Set(),
|
|
390
|
-
worker: createWorkerContext(innerConfig.sys)
|
|
390
|
+
worker: createWorkerContext(innerConfig.sys),
|
|
391
|
+
cssTransformCache: /* @__PURE__ */ new Map()
|
|
391
392
|
};
|
|
392
393
|
Object.defineProperty(compilerCtx, "fs", { get() {
|
|
393
394
|
if (this._fs == null) this._fs = createInMemoryFs(innerConfig.sys);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-CjcI7cDX.mjs";
|
|
2
|
-
import { A as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { A as DOCS_CUSTOM, B as LISTENER_FLAGS, C as ASSETS, D as CUSTOM, E as COPY, G as STANDALONE, H as MEMBER_FLAGS, I as GENERATED_DTS, K as STATS, L as GLOBAL_STYLE, M as DOCS_JSON, N as DOCS_README, P as DOCS_VSCODE, V as LOADER_BUNDLE, X as VALID_CONFIG_OUTPUT_TARGETS, Y as TYPES, Z as WATCH_FLAGS, _ as sortBy, b as toTitleCase, i as flatOne, j as DOCS_CUSTOM_ELEMENTS_MANIFEST, k as DIST_LAZY, n as dashToPascalCase, p as isString, q as STENCIL_REBUNDLE, r as escapeWithPattern, u as isIterable, w as CMP_FLAGS, y as toDashCase } from "./regular-expression-D0_N0PGa.mjs";
|
|
3
|
+
import nodePath, { basename, dirname, relative } from "node:path";
|
|
4
|
+
import picomatch from "picomatch";
|
|
5
5
|
//#region src/utils/byte-size.ts
|
|
6
6
|
/**
|
|
7
7
|
* Used to learn the size of a string in bytes.
|
|
@@ -267,7 +267,8 @@ const buildWarn = (diagnostics) => {
|
|
|
267
267
|
* @param jsonFilePath the path to the JSON file where the error occurred
|
|
268
268
|
* @param msg the error message
|
|
269
269
|
* @param jsonField the key for the field which caused the error, used for finding
|
|
270
|
-
* the error line in the original JSON file
|
|
270
|
+
* the error line in the original JSON file. Only root-level keys (with minimal
|
|
271
|
+
* indentation, typically 2 spaces) are highlighted to avoid matching nested keys.
|
|
271
272
|
* @returns a reference to the newly-created diagnostic
|
|
272
273
|
*/
|
|
273
274
|
const buildJsonFileError = (compilerCtx, diagnostics, jsonFilePath, msg, jsonField) => {
|
|
@@ -276,41 +277,60 @@ const buildJsonFileError = (compilerCtx, diagnostics, jsonFilePath, msg, jsonFie
|
|
|
276
277
|
err.absFilePath = jsonFilePath;
|
|
277
278
|
if (typeof jsonField === "string") try {
|
|
278
279
|
const lines = compilerCtx.fs.readFileSync(jsonFilePath).replace(/\r/g, "\n").split("\n");
|
|
280
|
+
let bestMatch = null;
|
|
281
|
+
const ROOT_LEVEL_INDENTATION = 2;
|
|
279
282
|
for (let i = 0; i < lines.length; i++) {
|
|
280
283
|
const txtLine = lines[i];
|
|
281
284
|
const txtIndex = txtLine.indexOf(jsonField);
|
|
282
285
|
if (txtIndex > -1) {
|
|
283
|
-
const
|
|
286
|
+
const indentation = txtLine.search(/\S/);
|
|
287
|
+
if (indentation === ROOT_LEVEL_INDENTATION) {
|
|
288
|
+
bestMatch = {
|
|
289
|
+
lineIndex: i,
|
|
290
|
+
charIndex: txtIndex,
|
|
291
|
+
indentation
|
|
292
|
+
};
|
|
293
|
+
break;
|
|
294
|
+
} else if (bestMatch === null || indentation < bestMatch.indentation) bestMatch = {
|
|
284
295
|
lineIndex: i,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
errorCharStart: txtIndex,
|
|
288
|
-
errorLength: jsonField.length
|
|
296
|
+
charIndex: txtIndex,
|
|
297
|
+
indentation
|
|
289
298
|
};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (bestMatch !== null && bestMatch.indentation === ROOT_LEVEL_INDENTATION) {
|
|
302
|
+
const i = bestMatch.lineIndex;
|
|
303
|
+
const txtIndex = bestMatch.charIndex;
|
|
304
|
+
const txtLine = lines[i];
|
|
305
|
+
const warnLine = {
|
|
306
|
+
lineIndex: i,
|
|
307
|
+
lineNumber: i + 1,
|
|
308
|
+
text: txtLine,
|
|
309
|
+
errorCharStart: txtIndex,
|
|
310
|
+
errorLength: jsonField.length
|
|
311
|
+
};
|
|
312
|
+
err.lineNumber = warnLine.lineNumber;
|
|
313
|
+
err.columnNumber = txtIndex + 1;
|
|
314
|
+
err.lines.push(warnLine);
|
|
315
|
+
if (i > 0) {
|
|
316
|
+
const beforeWarnLine = {
|
|
317
|
+
lineIndex: warnLine.lineIndex - 1,
|
|
318
|
+
lineNumber: warnLine.lineNumber - 1,
|
|
319
|
+
text: lines[i - 1],
|
|
320
|
+
errorCharStart: -1,
|
|
321
|
+
errorLength: -1
|
|
322
|
+
};
|
|
323
|
+
err.lines.unshift(beforeWarnLine);
|
|
324
|
+
}
|
|
325
|
+
if (i < lines.length - 1) {
|
|
326
|
+
const afterWarnLine = {
|
|
327
|
+
lineIndex: warnLine.lineIndex + 1,
|
|
328
|
+
lineNumber: warnLine.lineNumber + 1,
|
|
329
|
+
text: lines[i + 1],
|
|
330
|
+
errorCharStart: -1,
|
|
331
|
+
errorLength: -1
|
|
332
|
+
};
|
|
333
|
+
err.lines.push(afterWarnLine);
|
|
314
334
|
}
|
|
315
335
|
}
|
|
316
336
|
} catch {}
|
|
@@ -741,7 +761,7 @@ function relative$1(from, to) {
|
|
|
741
761
|
* path. However, our algorithm does differ from that of Node's, as described in this function's JSDoc when a zero
|
|
742
762
|
* length string is encountered.
|
|
743
763
|
*/
|
|
744
|
-
return normalizePath(
|
|
764
|
+
return normalizePath(nodePath.relative(from, to), false);
|
|
745
765
|
}
|
|
746
766
|
/**
|
|
747
767
|
* A wrapped version of node.js' {@link path.join} which adds our custom
|
|
@@ -764,7 +784,7 @@ function join$1(...paths) {
|
|
|
764
784
|
* Note that our algorithm does differ from Node's, as described in this function's JSDoc regarding trailing
|
|
765
785
|
* slashes.
|
|
766
786
|
*/
|
|
767
|
-
return normalizePath(
|
|
787
|
+
return normalizePath(nodePath.join(...paths), false);
|
|
768
788
|
}
|
|
769
789
|
/**
|
|
770
790
|
* A wrapped version of node.js' {@link path.resolve} which adds our custom
|
|
@@ -781,7 +801,7 @@ function resolve(...paths) {
|
|
|
781
801
|
* When normalizing, we should _not_ attempt to relativize the path returned by the native Node `resolve` method. When
|
|
782
802
|
* calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
|
|
783
803
|
*/
|
|
784
|
-
return normalizePath(
|
|
804
|
+
return normalizePath(nodePath.resolve(...paths), false);
|
|
785
805
|
}
|
|
786
806
|
/**
|
|
787
807
|
* A wrapped version of node.js' {@link path.normalize} which adds our custom
|
|
@@ -798,7 +818,7 @@ function normalize(toNormalize) {
|
|
|
798
818
|
* When normalizing, we should _not_ attempt to relativize the path returned by the native Node `normalize` method.
|
|
799
819
|
* When calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
|
|
800
820
|
*/
|
|
801
|
-
return normalizePath(
|
|
821
|
+
return normalizePath(nodePath.normalize(toNormalize), false);
|
|
802
822
|
}
|
|
803
823
|
//#endregion
|
|
804
824
|
//#region src/utils/logger/logger-typescript.ts
|
|
@@ -973,7 +993,7 @@ const flattenDiagnosticMessageText = (tsDiagnostic, diag) => {
|
|
|
973
993
|
const shouldExcludeComponent = (tagName, excludePatterns) => {
|
|
974
994
|
if (!excludePatterns || excludePatterns.length === 0) return false;
|
|
975
995
|
return excludePatterns.some((pattern) => {
|
|
976
|
-
if (isGlob(pattern)) return
|
|
996
|
+
if (isGlob(pattern)) return picomatch.isMatch(tagName, pattern);
|
|
977
997
|
return pattern === tagName;
|
|
978
998
|
});
|
|
979
999
|
};
|
|
@@ -1025,21 +1045,21 @@ const relativeImport = (pathFrom, pathTo, ext, addPrefix = true) => {
|
|
|
1025
1045
|
};
|
|
1026
1046
|
const getComponentsDtsSrcFilePath = (config) => join$1(config.srcDir, GENERATED_DTS);
|
|
1027
1047
|
/**
|
|
1028
|
-
* Helper to get an appropriate file path for `components.d.ts` for
|
|
1029
|
-
* or `"dist-types"` output target.
|
|
1048
|
+
* Helper to get an appropriate file path for `components.d.ts` for an output target.
|
|
1030
1049
|
*
|
|
1031
|
-
* @param
|
|
1050
|
+
* @param typesDir the directory where types are generated
|
|
1032
1051
|
* @returns a properly-formatted path
|
|
1033
1052
|
*/
|
|
1034
|
-
const getComponentsDtsTypesFilePath = (
|
|
1035
|
-
const
|
|
1036
|
-
const
|
|
1037
|
-
const
|
|
1053
|
+
const getComponentsDtsTypesFilePath = (typesDir) => join$1(typesDir, GENERATED_DTS);
|
|
1054
|
+
const isOutputTargetLoaderBundle = (o) => o.type === LOADER_BUNDLE;
|
|
1055
|
+
const isOutputTargetStandalone = (o) => o.type === STANDALONE;
|
|
1056
|
+
const isOutputTargetSsr = (o) => o.type === "ssr";
|
|
1057
|
+
const isOutputTargetStencilRebundle = (o) => o.type === STENCIL_REBUNDLE;
|
|
1058
|
+
const isOutputTargetTypes = (o) => o.type === TYPES;
|
|
1059
|
+
const isOutputTargetGlobalStyle = (o) => o.type === GLOBAL_STYLE;
|
|
1060
|
+
const isOutputTargetAssets = (o) => o.type === ASSETS;
|
|
1038
1061
|
const isOutputTargetCopy = (o) => o.type === COPY;
|
|
1039
1062
|
const isOutputTargetDistLazy = (o) => o.type === DIST_LAZY;
|
|
1040
|
-
const isOutputTargetDistLazyLoader = (o) => o.type === DIST_LAZY_LOADER;
|
|
1041
|
-
const isOutputTargetDistGlobalStyles = (o) => o.type === DIST_GLOBAL_STYLES;
|
|
1042
|
-
const isOutputTargetHydrate = (o) => o.type === DIST_HYDRATE_SCRIPT;
|
|
1043
1063
|
const isOutputTargetCustom = (o) => o.type === CUSTOM;
|
|
1044
1064
|
const isOutputTargetDocs = (o) => o.type === "docs-readme" || o.type === "docs-json" || o.type === "docs-custom" || o.type === "docs-vscode" || o.type === "docs-custom-elements-manifest";
|
|
1045
1065
|
const isOutputTargetDocsReadme = (o) => o.type === DOCS_README;
|
|
@@ -1049,15 +1069,6 @@ const isOutputTargetDocsVscode = (o) => o.type === DOCS_VSCODE;
|
|
|
1049
1069
|
const isOutputTargetDocsCustomElementsManifest = (o) => o.type === DOCS_CUSTOM_ELEMENTS_MANIFEST;
|
|
1050
1070
|
const isOutputTargetWww = (o) => o.type === "www";
|
|
1051
1071
|
const isOutputTargetStats = (o) => o.type === STATS;
|
|
1052
|
-
const isOutputTargetDistTypes = (o) => o.type === DIST_TYPES;
|
|
1053
|
-
/**
|
|
1054
|
-
* Checks whether or not the supplied output target's type matches one of the eligible primary
|
|
1055
|
-
* package output target types (i.e. it can have `isPrimaryPackageOutputTarget: true` in its config).
|
|
1056
|
-
*
|
|
1057
|
-
* @param o The output target to check.
|
|
1058
|
-
* @returns Whether the output target type is one of the "primary" output targets.
|
|
1059
|
-
*/
|
|
1060
|
-
const isEligiblePrimaryPackageOutputTarget = (o) => isOutputTargetDist(o) || isOutputTargetDistCollection(o) || isOutputTargetDistCustomElements(o) || isOutputTargetDistTypes(o);
|
|
1061
1072
|
/**
|
|
1062
1073
|
* Retrieve the Stencil component compiler metadata from a collection of Stencil {@link d.Module}s
|
|
1063
1074
|
* @param moduleFiles the collection of `Module`s to retrieve the metadata from
|
|
@@ -1073,6 +1084,19 @@ const getComponentsFromModules = (moduleFiles) => sortBy(flatOne(moduleFiles.map
|
|
|
1073
1084
|
function isValidConfigOutputTarget(targetType) {
|
|
1074
1085
|
return VALID_CONFIG_OUTPUT_TARGETS.includes(targetType);
|
|
1075
1086
|
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Filter output targets based on devMode and their skipInDev setting.
|
|
1089
|
+
* In dev mode, targets with `skipInDev: true` are filtered out.
|
|
1090
|
+
* In prod mode, all targets are included.
|
|
1091
|
+
*
|
|
1092
|
+
* @param targets Array of output targets to filter
|
|
1093
|
+
* @param devMode Whether we're in dev mode
|
|
1094
|
+
* @returns Filtered array of active targets
|
|
1095
|
+
*/
|
|
1096
|
+
const filterActiveTargets = (targets, devMode) => {
|
|
1097
|
+
if (!devMode) return targets;
|
|
1098
|
+
return targets.filter((t) => !t.skipInDev);
|
|
1099
|
+
};
|
|
1076
1100
|
//#endregion
|
|
1077
1101
|
//#region src/utils/result.ts
|
|
1078
1102
|
var result_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1442,4 +1466,4 @@ const validateComponentTag = (tag) => {
|
|
|
1442
1466
|
if (tag.lastIndexOf("-") === tag.length - 1) return `"${tag}" tag cannot end with a dash (-)`;
|
|
1443
1467
|
};
|
|
1444
1468
|
//#endregion
|
|
1445
|
-
export { join$1 as $,
|
|
1469
|
+
export { join$1 as $, isOutputTargetCopy as A, isOutputTargetLoaderBundle as B, result_exports as C, stringifyRuntimeData as Ct, getComponentsDtsTypesFilePath as D, getComponentsDtsSrcFilePath as E, isOutputTargetDocsCustomElementsManifest as F, isOutputTargetTypes as G, isOutputTargetStandalone as H, isOutputTargetDocsJson as I, relativeImport as J, isOutputTargetWww as K, isOutputTargetDocsReadme as L, isOutputTargetDistLazy as M, isOutputTargetDocs as N, getComponentsFromModules as O, isOutputTargetDocsCustom as P, loadTypeScriptDiagnostics as Q, isOutputTargetDocsVscode as R, ok as S, formatLazyBundleRuntimeMeta as St, filterExcludedComponents as T, isOutputTargetStats as U, isOutputTargetSsr as V, isOutputTargetStencilRebundle as W, augmentDiagnosticWithNode as X, shouldExcludeComponent as Y, loadTypeScriptDiagnostic as Z, getSourceMappingUrlForEndOfFile as _, hasWarning as _t, getTextDocs as a, resolve as at, err as b, isGlob as bt, isJsFile as c, escapeHtml as ct, isTsxFile as d, TASK_CANCELED_MSG as dt, normalize as et, parsePackageJson as f, buildError as ft, getInlineSourceMappingUrlLinker as g, hasError as gt, isRemoteUrl as h, catchError as ht, generatePreamble as i, relative$1 as it, isOutputTargetCustom as j, isOutputTargetAssets as k, isJsxFile as l, normalizeDiagnostics as lt, readPackageJson as m, buildWarn as mt, addDocBlock as n, normalizeFsPathQuery as nt, hasDependency as o, createOnWarnFn as ot, readOnlyArrayHasStringMember as p, buildJsonFileError as pt, isValidConfigOutputTarget as q, createJsVarName as r, normalizePath as rt, isDtsFile as s, loadRolldownDiagnostics as st, validateComponentTag as t, normalizeFsPath as tt, isTsFile as u, splitLineBreaks as ut, getSourceMappingUrlLinker as v, shouldIgnoreError as vt, filterActiveTargets as w, byteSize as wt, map as x, formatComponentRuntimeMeta as xt, rolldownToStencilSourceMap as y, isRootPath as yt, isOutputTargetGlobalStyle as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.5",
|
|
4
4
|
"description": "A Compiler for Web Components and Progressive Web Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -92,33 +92,32 @@
|
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@parcel/watcher": "^2.5.1",
|
|
94
94
|
"@rollup/pluginutils": "^5.3.0",
|
|
95
|
-
"@stencil/vitest": "^1.10.0",
|
|
96
95
|
"browserslist": "^4.24.0",
|
|
97
96
|
"chalk": "^5.6.2",
|
|
98
97
|
"css-what": "^7.0.0",
|
|
99
|
-
"glob": "^10.0.0",
|
|
100
|
-
"graceful-fs": "^4.2.11",
|
|
101
98
|
"lightningcss": "^1.32.0",
|
|
102
99
|
"magic-string": "^0.30.0",
|
|
103
|
-
"
|
|
100
|
+
"picomatch": "^4.0.3",
|
|
104
101
|
"postcss": "^8.5.6",
|
|
105
102
|
"postcss-safe-parser": "^7.0.1",
|
|
106
103
|
"postcss-selector-parser": "^7.1.1",
|
|
107
104
|
"resolve": "^1.22.0",
|
|
108
|
-
"rolldown": "^1.0.0-rc.
|
|
105
|
+
"rolldown": "^1.0.0-rc.15",
|
|
109
106
|
"semver": "^7.7.4",
|
|
110
107
|
"terser": "5.37.0",
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"@stencil/
|
|
114
|
-
"@stencil/dev-server": "5.0.0-alpha.
|
|
108
|
+
"tinyglobby": "^0.2.15",
|
|
109
|
+
"typescript": ">4.0.0",
|
|
110
|
+
"@stencil/cli": "5.0.0-alpha.5",
|
|
111
|
+
"@stencil/dev-server": "5.0.0-alpha.5",
|
|
112
|
+
"@stencil/mock-doc": "5.0.0-alpha.5"
|
|
115
113
|
},
|
|
116
114
|
"devDependencies": {
|
|
117
115
|
"@ionic/prettier-config": "^4.0.0",
|
|
116
|
+
"@stencil/vitest": "^1.11.6",
|
|
118
117
|
"prettier": "^3.5.0",
|
|
119
|
-
"tsdown": "^0.21.
|
|
118
|
+
"tsdown": "^0.21.7",
|
|
120
119
|
"vitest": "^4.1.1",
|
|
121
|
-
"vitest-environment-stencil": "^1.
|
|
120
|
+
"vitest-environment-stencil": "^1.11.6"
|
|
122
121
|
},
|
|
123
122
|
"volta": {
|
|
124
123
|
"extends": "../../package.json"
|