@stencil/core 5.0.0-alpha.2 → 5.0.0-alpha.4

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 (42) hide show
  1. package/dist/{client-DucyoZT4.mjs → client-Dti6fFpE.mjs} +108 -69
  2. package/dist/compiler/index.d.mts +3 -3
  3. package/dist/compiler/index.mjs +2 -2
  4. package/dist/compiler/utils/index.d.mts +2 -2
  5. package/dist/compiler/utils/index.mjs +3 -3
  6. package/dist/{compiler-DyK1_szo.mjs → compiler-BYRrEeD-.mjs} +2065 -2106
  7. package/dist/declarations/stencil-public-compiler.d.ts +4085 -2
  8. package/dist/declarations/stencil-public-compiler.js +0 -1
  9. package/dist/declarations/stencil-public-docs.d.ts +494 -1
  10. package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
  11. package/dist/{index-fIuYTL9f.d.mts → index-9LTuoSiw.d.mts} +18 -2
  12. package/dist/{index-D-LlB2nw.d.mts → index-BwTaN1Nq.d.mts} +199 -809
  13. package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
  14. package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
  15. package/dist/index.d.mts +1 -0
  16. package/dist/index.mjs +2 -2
  17. package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
  18. package/dist/jsx-runtime.d.ts +1 -1
  19. package/dist/jsx-runtime.js +1 -1
  20. package/dist/{node-BWBQAh8C.mjs → node-BF2jSfWg.mjs} +3 -14
  21. package/dist/regular-expression-D5pGVpCu.mjs +415 -0
  22. package/dist/runtime/app-data/index.d.ts +1 -1
  23. package/dist/runtime/app-data/index.js +1 -2
  24. package/dist/runtime/client/index.d.ts +18 -4
  25. package/dist/runtime/client/index.js +130 -214
  26. package/dist/runtime/index.d.ts +20 -4
  27. package/dist/runtime/index.js +2 -2
  28. package/dist/runtime/server/index.d.mts +18 -7
  29. package/dist/runtime/server/index.mjs +128 -215
  30. package/dist/runtime/server/runner.d.mts +1 -17
  31. package/dist/runtime/server/runner.mjs +12 -394
  32. package/dist/{runtime-CqlPYKjW.js → runtime-COEYYPyw.js} +130 -214
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +3 -3
  37. package/dist/testing/index.mjs +20 -18
  38. package/dist/{validation-BR7tMYEv.mjs → validation-Byxie0Uk.mjs} +28 -24
  39. package/package.json +9 -13
  40. package/dist/serialize-o-Sj1lvg.mjs +0 -792
  41. package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
  42. package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
@@ -1,5 +1,5 @@
1
- import { B as ComponentCompilerMeta, Ct as HostElement, E as CompilerCtx, Rr as Diagnostic, Rt as Module, Sa as UserBuildConditionals, Ut as NewSpecPageOptions, _a as ErrorHandler, a as BuildCtx, ai as LoggerTimeSpan, ei as LoadConfigInit, fa as UnvalidatedConfig, ft as ComponentRuntimeMeta, gr as CompilerSystem, ia as Testing, ni as LogLevel, pa as ValidatedConfig, pn as RuntimeRef, ri as Logger, vn as SpecPage, wt as HostRef, ya as RafCallback } from "../index-D-LlB2nw.mjs";
2
- import { c as getMode, d as Fragment, f as createEvent, g as Env, h as setAssetPath, i as getRenderingRef, m as getAssetPath, n as h, p as getElement, r as forceUpdate, t as Host, u as Mixin } from "../index-fIuYTL9f.mjs";
1
+ import { $r as Logger, B as ComponentCompilerMeta, Bt as Module, E as CompilerCtx, Et as HostRef, Gt as NewSpecPageOptions, Qr as LogLevel, Tt as HostElement, Xr as LoadConfigInit, _r as CompilerSystem, a as BuildCtx, bn as SpecPage, fa as UserBuildConditionals, hn as RuntimeRef, la as RafCallback, na as UnvalidatedConfig, pt as ComponentRuntimeMeta, ra as ValidatedConfig, sa as ErrorHandler, ti as LoggerTimeSpan, zr as Diagnostic } from "../index-BwTaN1Nq.mjs";
2
+ import { _ as Env, c as getMode, d as Fragment, f as createEvent, g as setAssetPath, h as getAssetPath, i as getRenderingRef, n as h, p as getElement, r as forceUpdate, t as Host, u as Mixin } from "../index-9LTuoSiw.mjs";
3
3
  import { Mock } from "vitest";
4
4
 
5
5
  //#region src/testing/testing-logger.d.ts
@@ -206,4 +206,4 @@ declare function readTask(cb: RafCallback): void;
206
206
  //#region src/testing/platform/index.d.ts
207
207
  declare const setMode: (handler: (elm: any) => string | undefined | null) => void;
208
208
  //#endregion
209
- export { Build, Env, Fragment, Host, Mixin, type SpecPage, type Testing, createEvent, createTestingSystem, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, h, mockBuildCtx, mockCompilerCtx, mockCompilerSystem, mockComponentMeta, mockConfig, mockDocument, mockLoadConfigInit, mockLogger, mockModule, mockValidatedConfig, mockWindow, newSpecPage, readTask, registerHost, registerInstance, setAssetPath, setErrorHandler, setMode, setupConsoleMocker, shuffleArray, writeTask };
209
+ export { Build, Env, Fragment, Host, Mixin, type SpecPage, createEvent, createTestingSystem, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, h, mockBuildCtx, mockCompilerCtx, mockCompilerSystem, mockComponentMeta, mockConfig, mockDocument, mockLoadConfigInit, mockLogger, mockModule, mockValidatedConfig, mockWindow, newSpecPage, readTask, registerHost, registerInstance, setAssetPath, setErrorHandler, setMode, setupConsoleMocker, shuffleArray, writeTask };
@@ -1,8 +1,8 @@
1
- import { B as Env, T as reWireGetterSetter, _ as h, a as Mixin, c as forceUpdate, d as createEvent, f as getElement, g as Host, l as getRenderingRef, o as Fragment, p as getMode, s as bootstrapLazy, t as insertVdomAnnotations, u as renderVdom, v as getAssetPath, y as setAssetPath, z as BUILD } from "../client-DucyoZT4.mjs";
2
- import { D as CMP_FLAGS, G as EVENT_FLAGS, y as noop } from "../serialize-o-Sj1lvg.mjs";
3
- import { _ as getBuildFeatures, c as createWorkerContext, h as BuildContext, i as createSystem, m as Cache, p as createInMemoryFs } from "../compiler-DyK1_szo.mjs";
4
- import { St as formatLazyBundleRuntimeMeta } from "../validation-BR7tMYEv.mjs";
5
- import { o as buildEvents } from "../node-BWBQAh8C.mjs";
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-Dti6fFpE.mjs";
2
+ import { C as CMP_FLAGS, V as EVENT_FLAGS, h as noop } from "../regular-expression-D5pGVpCu.mjs";
3
+ import { _ as getBuildFeatures, c as createWorkerContext, h as BuildContext, i as createSystem, m as Cache, p as createInMemoryFs } from "../compiler-BYRrEeD-.mjs";
4
+ import { St as formatLazyBundleRuntimeMeta } from "../validation-Byxie0Uk.mjs";
5
+ import { o as buildEvents } from "../node-BF2jSfWg.mjs";
6
6
  import path from "node:path";
7
7
  import path$1 from "path";
8
8
  import { MockWindow, setupGlobal } from "@stencil/mock-doc";
@@ -192,12 +192,15 @@ const mockComponentMeta = (overrides = {}) => ({
192
192
  hasListenerTarget: false,
193
193
  hasListenerTargetBody: false,
194
194
  hasListenerTargetDocument: false,
195
- hasListenerTargetParent: false,
196
195
  hasListenerTargetWindow: false,
197
196
  hasMember: false,
198
197
  hasMethod: false,
199
198
  hasMode: false,
200
199
  hasModernPropertyDecls: false,
200
+ hasPatchAll: false,
201
+ hasPatchChildren: false,
202
+ hasPatchClone: false,
203
+ hasPatchInsert: false,
201
204
  hasProp: false,
202
205
  hasPropBoolean: false,
203
206
  hasPropMutable: false,
@@ -231,10 +234,12 @@ const mockComponentMeta = (overrides = {}) => ({
231
234
  jsFilePath: "/some/stubbed/path/my-component.js",
232
235
  listeners: [],
233
236
  methods: [],
237
+ patches: null,
234
238
  potentialCmpRefs: [],
235
239
  properties: [],
236
240
  serializers: [],
237
241
  shadowDelegatesFocus: false,
242
+ shadowMode: null,
238
243
  slotAssignment: null,
239
244
  sourceFilePath: "/some/stubbed/path/my-component.tsx",
240
245
  sourceMapPath: "/some/stubbed/path/my-component.js.map",
@@ -258,7 +263,6 @@ function mockValidatedConfig(overrides = {}) {
258
263
  const rootDir = path.resolve("/");
259
264
  return {
260
265
  ...baseConfig,
261
- buildEs5: false,
262
266
  cacheDir: ".stencil",
263
267
  devMode: true,
264
268
  devServer: {},
@@ -280,9 +284,8 @@ function mockValidatedConfig(overrides = {}) {
280
284
  srcIndexHtml: "src/index.html",
281
285
  suppressReservedPublicNameWarnings: false,
282
286
  sys: createTestingSystem(),
283
- testing: {},
284
287
  transformAliasedImportPaths: true,
285
- rollupConfig: {
288
+ rolldownConfig: {
286
289
  inputOptions: {},
287
290
  outputOptions: {}
288
291
  },
@@ -306,7 +309,6 @@ function mockConfig(overrides = {}) {
306
309
  _isTesting: true,
307
310
  buildAppCore: false,
308
311
  buildDist: true,
309
- buildEs5: false,
310
312
  bundles: null,
311
313
  devMode: true,
312
314
  enableCache: false,
@@ -318,9 +320,9 @@ function mockConfig(overrides = {}) {
318
320
  minifyCss: false,
319
321
  minifyJs: false,
320
322
  namespace: "Testing",
321
- nodeResolve: { customResolveOptions: {} },
323
+ nodeResolve: {},
322
324
  outputTargets: null,
323
- rollupPlugins: {
325
+ rolldownPlugins: {
324
326
  before: [],
325
327
  after: []
326
328
  },
@@ -328,7 +330,6 @@ function mockConfig(overrides = {}) {
328
330
  sourceMap: true,
329
331
  suppressReservedPublicNameWarnings: false,
330
332
  sys,
331
- testing: null,
332
333
  validateTypes: false,
333
334
  ...overrides
334
335
  };
@@ -381,12 +382,13 @@ function mockCompilerCtx(config) {
381
382
  nodeMap: /* @__PURE__ */ new WeakMap(),
382
383
  reset: noop,
383
384
  resolvedCollections: /* @__PURE__ */ new Set(),
384
- rollupCache: /* @__PURE__ */ new Map(),
385
- rollupCacheHydrate: null,
386
- rollupCacheLazy: null,
387
- rollupCacheNative: null,
385
+ rolldownCache: /* @__PURE__ */ new Map(),
386
+ rolldownCacheHydrate: null,
387
+ rolldownCacheLazy: null,
388
+ rolldownCacheNative: null,
388
389
  styleModeNames: /* @__PURE__ */ new Set(),
389
- worker: createWorkerContext(innerConfig.sys)
390
+ worker: createWorkerContext(innerConfig.sys),
391
+ cssTransformCache: /* @__PURE__ */ new Map()
390
392
  };
391
393
  Object.defineProperty(compilerCtx, "fs", { get() {
392
394
  if (this._fs == null) this._fs = createInMemoryFs(innerConfig.sys);
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-CjcI7cDX.mjs";
2
- import { A as CUSTOM, B as DOCS_CUSTOM, C as toDashCase, D as CMP_FLAGS, F as DIST_GLOBAL_STYLES, H as DOCS_JSON, I as DIST_HYDRATE_SCRIPT, K as GENERATED_DTS, L as DIST_LAZY, M as DIST, N as DIST_COLLECTION, P as DIST_CUSTOM_ELEMENTS, R as DIST_LAZY_LOADER, U as DOCS_README, V as DOCS_CUSTOM_ELEMENTS_MANIFEST, W as DOCS_VSCODE, X as MEMBER_FLAGS, Y as LISTENER_FLAGS, _ as isString, c as flatOne, it as VALID_CONFIG_OUTPUT_TARGETS, k as COPY, m as isIterable, o as dashToPascalCase, ot as WATCH_FLAGS, s as escapeWithPattern, tt as STATS, w as toTitleCase, x as sortBy, z as DIST_TYPES } from "./serialize-o-Sj1lvg.mjs";
2
+ import { A as DIST_CUSTOM_ELEMENTS, B as DOCS_VSCODE, C as CMP_FLAGS, E as CUSTOM, F as DIST_TYPES, G as LISTENER_FLAGS, H as GENERATED_DTS, I as DOCS_CUSTOM, J as STATS, K as MEMBER_FLAGS, L as DOCS_CUSTOM_ELEMENTS_MANIFEST, M as DIST_HYDRATE_SCRIPT, N as DIST_LAZY, O as DIST, P as DIST_LAZY_LOADER, R as DOCS_JSON, T as COPY, X as VALID_CONFIG_OUTPUT_TARGETS, Z as WATCH_FLAGS, _ as sortBy, b as toTitleCase, i as flatOne, j as DIST_GLOBAL_STYLES, k as DIST_COLLECTION, n as dashToPascalCase, p as isString, r as escapeWithPattern, u as isIterable, y as toDashCase, z as DOCS_README } from "./regular-expression-D5pGVpCu.mjs";
3
3
  import path, { basename, dirname, relative } from "node:path";
4
4
  import { minimatch } from "minimatch";
5
5
  //#region src/utils/byte-size.ts
@@ -29,12 +29,19 @@ const formatComponentRuntimeMeta = (compilerMeta, includeMethods) => {
29
29
  flags |= CMP_FLAGS.shadowDomEncapsulation;
30
30
  if (compilerMeta.shadowDelegatesFocus) flags |= CMP_FLAGS.shadowDelegatesFocus;
31
31
  if (compilerMeta.slotAssignment === "manual") flags |= CMP_FLAGS.shadowSlotAssignmentManual;
32
+ if (compilerMeta.shadowMode === "closed") flags |= CMP_FLAGS.shadowModeClosed;
32
33
  } else if (compilerMeta.encapsulation === "scoped") flags |= CMP_FLAGS.scopedCssEncapsulation;
33
34
  if (compilerMeta.formAssociated) flags |= CMP_FLAGS.formAssociated;
34
35
  if (compilerMeta.encapsulation !== "shadow" && compilerMeta.htmlTagNames.includes("slot")) flags |= CMP_FLAGS.hasSlotRelocation;
35
36
  if (compilerMeta.hasSlot) flags |= CMP_FLAGS.hasSlot;
36
37
  if (compilerMeta.hasMode) flags |= CMP_FLAGS.hasMode;
37
38
  if (compilerMeta.hasModernPropertyDecls) flags |= CMP_FLAGS.hasModernPropertyDecls;
39
+ if (compilerMeta.patches) {
40
+ if (compilerMeta.patches.all) flags |= CMP_FLAGS.patchAll;
41
+ if (compilerMeta.patches.children) flags |= CMP_FLAGS.patchChildren;
42
+ if (compilerMeta.patches.clone) flags |= CMP_FLAGS.patchClone;
43
+ if (compilerMeta.patches.insert) flags |= CMP_FLAGS.patchInsert;
44
+ }
38
45
  const members = formatComponentRuntimeMembers(compilerMeta, includeMethods);
39
46
  const hostListeners = formatHostListeners(compilerMeta);
40
47
  const watchers = formatComponentRuntimeReactiveHandlers(compilerMeta, "watchers");
@@ -153,9 +160,6 @@ const computeListenerFlags = (listener) => {
153
160
  case "body":
154
161
  flags |= LISTENER_FLAGS.TargetBody;
155
162
  break;
156
- case "parent":
157
- flags |= LISTENER_FLAGS.TargetParent;
158
- break;
159
163
  }
160
164
  return flags;
161
165
  };
@@ -461,26 +465,26 @@ const escapeHtml = (unsafe) => {
461
465
  return unsafe.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
462
466
  };
463
467
  //#endregion
464
- //#region src/utils/logger/logger-rollup.ts
465
- const loadRollupDiagnostics = (config, compilerCtx, buildCtx, rollupError) => {
466
- const formattedCode = formatErrorCode(rollupError.code);
468
+ //#region src/utils/logger/logger-rolldown.ts
469
+ const loadRolldownDiagnostics = (config, compilerCtx, buildCtx, rolldownError) => {
470
+ const formattedCode = formatErrorCode(rolldownError.code);
467
471
  const diagnostic = {
468
472
  level: "error",
469
473
  type: "bundling",
470
474
  language: "javascript",
471
- code: rollupError.code,
472
- header: `Rollup${formattedCode.length > 0 ? ": " + formattedCode : ""}`,
475
+ code: rolldownError.code,
476
+ header: `Rolldown${formattedCode.length > 0 ? ": " + formattedCode : ""}`,
473
477
  messageText: formattedCode,
474
478
  relFilePath: void 0,
475
479
  absFilePath: void 0,
476
480
  lines: []
477
481
  };
478
- if (config.logLevel === "debug" && rollupError.stack) diagnostic.messageText = rollupError.stack;
479
- else if (rollupError.message) diagnostic.messageText = rollupError.message;
480
- if (rollupError.plugin) diagnostic.messageText += ` (plugin: ${rollupError.plugin}${rollupError.hook ? `, ${rollupError.hook}` : ""})`;
481
- const loc = rollupError.loc;
482
+ if (config.logLevel === "debug" && rolldownError.stack) diagnostic.messageText = rolldownError.stack;
483
+ else if (rolldownError.message) diagnostic.messageText = rolldownError.message;
484
+ if (rolldownError.plugin) diagnostic.messageText += ` (plugin: ${rolldownError.plugin}${rolldownError.hook ? `, ${rolldownError.hook}` : ""})`;
485
+ const loc = rolldownError.loc;
482
486
  if (loc != null) {
483
- const srcFile = loc.file || rollupError.id;
487
+ const srcFile = loc.file || rolldownError.id;
484
488
  if (isString(srcFile)) try {
485
489
  const sourceText = compilerCtx.fs.readFileSync(srcFile);
486
490
  if (sourceText) {
@@ -530,7 +534,7 @@ const loadRollupDiagnostics = (config, compilerCtx, buildCtx, rollupError) => {
530
534
  diagnostic.messageText += `\nError parsing: ${diagnostic.absFilePath}, line: ${loc.line}, column: ${loc.column}`;
531
535
  diagnostic.debugText = sourceText;
532
536
  }
533
- } else if (typeof rollupError.frame === "string") diagnostic.messageText += "\n" + rollupError.frame;
537
+ } else if (typeof rolldownError.frame === "string") diagnostic.messageText += "\n" + rolldownError.frame;
534
538
  } catch {}
535
539
  }
536
540
  buildCtx.diagnostics.push(diagnostic);
@@ -1141,15 +1145,15 @@ const unwrapErr = (result) => {
1141
1145
  };
1142
1146
  //#endregion
1143
1147
  //#region src/utils/sourcemaps.ts
1144
- function rollupToStencilSourceMap(rollupSourceMap) {
1145
- if (!rollupSourceMap || !rollupSourceMap.file) return null;
1148
+ function rolldownToStencilSourceMap(rolldownSourceMap) {
1149
+ if (!rolldownSourceMap || !rolldownSourceMap.file) return null;
1146
1150
  return {
1147
- file: rollupSourceMap.file,
1148
- mappings: rollupSourceMap.mappings,
1149
- names: rollupSourceMap.names,
1150
- sources: rollupSourceMap.sources,
1151
- sourcesContent: rollupSourceMap.sourcesContent,
1152
- version: rollupSourceMap.version
1151
+ file: rolldownSourceMap.file,
1152
+ mappings: rolldownSourceMap.mappings,
1153
+ names: rolldownSourceMap.names,
1154
+ sources: rolldownSourceMap.sources,
1155
+ sourcesContent: rolldownSourceMap.sourcesContent,
1156
+ version: rolldownSourceMap.version
1153
1157
  };
1154
1158
  }
1155
1159
  /**
@@ -1438,4 +1442,4 @@ const validateComponentTag = (tag) => {
1438
1442
  if (tag.lastIndexOf("-") === tag.length - 1) return `"${tag}" tag cannot end with a dash (-)`;
1439
1443
  };
1440
1444
  //#endregion
1441
- export { join$1 as $, isOutputTargetCustom as A, isOutputTargetDocsCustomElementsManifest as B, result_exports as C, stringifyRuntimeData as Ct, getComponentsFromModules as D, getComponentsDtsTypesFilePath as E, isOutputTargetDistLazy as F, isOutputTargetStats as G, isOutputTargetDocsReadme as H, isOutputTargetDistLazyLoader as I, relativeImport as J, isOutputTargetWww as K, isOutputTargetDistTypes as L, isOutputTargetDistCollection as M, isOutputTargetDistCustomElements as N, isEligiblePrimaryPackageOutputTarget as O, isOutputTargetDistGlobalStyles as P, loadTypeScriptDiagnostics as Q, isOutputTargetDocs as R, ok as S, formatLazyBundleRuntimeMeta as St, getComponentsDtsSrcFilePath as T, isOutputTargetDocsVscode as U, isOutputTargetDocsJson as V, isOutputTargetHydrate 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, isOutputTargetDist as j, isOutputTargetCopy 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, loadRollupDiagnostics as st, validateComponentTag as t, normalizeFsPath as tt, isTsFile as u, splitLineBreaks as ut, getSourceMappingUrlLinker as v, shouldIgnoreError as vt, filterExcludedComponents as w, byteSize as wt, map as x, formatComponentRuntimeMeta as xt, rollupToStencilSourceMap as y, isRootPath as yt, isOutputTargetDocsCustom as z };
1445
+ export { join$1 as $, isOutputTargetCustom as A, isOutputTargetDocsCustomElementsManifest as B, result_exports as C, stringifyRuntimeData as Ct, getComponentsFromModules as D, getComponentsDtsTypesFilePath as E, isOutputTargetDistLazy as F, isOutputTargetStats as G, isOutputTargetDocsReadme as H, isOutputTargetDistLazyLoader as I, relativeImport as J, isOutputTargetWww as K, isOutputTargetDistTypes as L, isOutputTargetDistCollection as M, isOutputTargetDistCustomElements as N, isEligiblePrimaryPackageOutputTarget as O, isOutputTargetDistGlobalStyles as P, loadTypeScriptDiagnostics as Q, isOutputTargetDocs as R, ok as S, formatLazyBundleRuntimeMeta as St, getComponentsDtsSrcFilePath as T, isOutputTargetDocsVscode as U, isOutputTargetDocsJson as V, isOutputTargetHydrate 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, isOutputTargetDist as j, isOutputTargetCopy 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, filterExcludedComponents as w, byteSize as wt, map as x, formatComponentRuntimeMeta as xt, rolldownToStencilSourceMap as y, isRootPath as yt, isOutputTargetDocsCustom as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -91,38 +91,34 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@parcel/watcher": "^2.5.1",
94
- "@rollup/plugin-commonjs": "^29.0.0",
95
- "@rollup/plugin-json": "^6.1.0",
96
- "@rollup/plugin-node-resolve": "^16.0.3",
97
- "@rollup/plugin-replace": "^6.0.3",
98
94
  "@rollup/pluginutils": "^5.3.0",
99
- "@stencil/vitest": "^1.9.3",
100
- "autoprefixer": "^10.4.24",
95
+ "@stencil/vitest": "^1.10.0",
96
+ "browserslist": "^4.24.0",
101
97
  "chalk": "^5.6.2",
102
98
  "css-what": "^7.0.0",
103
99
  "glob": "^10.0.0",
104
100
  "graceful-fs": "^4.2.11",
101
+ "lightningcss": "^1.32.0",
105
102
  "magic-string": "^0.30.0",
106
- "merge-source-map": "^1.1.0",
107
103
  "minimatch": "^10.1.2",
108
104
  "postcss": "^8.5.6",
109
105
  "postcss-safe-parser": "^7.0.1",
110
106
  "postcss-selector-parser": "^7.1.1",
111
107
  "resolve": "^1.22.0",
112
- "rollup": "^4.0.0",
108
+ "rolldown": "^1.0.0-rc.13",
113
109
  "semver": "^7.7.4",
114
110
  "terser": "5.37.0",
115
111
  "typescript": "~6.0.2",
116
- "@stencil/cli": "5.0.0-alpha.2",
117
- "@stencil/dev-server": "5.0.0-alpha.2",
118
- "@stencil/mock-doc": "5.0.0-alpha.2"
112
+ "@stencil/cli": "5.0.0-alpha.4",
113
+ "@stencil/dev-server": "5.0.0-alpha.4",
114
+ "@stencil/mock-doc": "5.0.0-alpha.4"
119
115
  },
120
116
  "devDependencies": {
121
117
  "@ionic/prettier-config": "^4.0.0",
122
118
  "prettier": "^3.5.0",
123
119
  "tsdown": "^0.21.6",
124
120
  "vitest": "^4.1.1",
125
- "vitest-environment-stencil": "^1.9.3"
121
+ "vitest-environment-stencil": "^1.10.0"
126
122
  },
127
123
  "volta": {
128
124
  "extends": "../../package.json"