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

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-CSm3x5ke.mjs} +81 -60
  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-D6iP7Bzb.mjs} +1390 -1631
  7. package/dist/declarations/stencil-public-compiler.d.ts +4031 -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-CXHCTQNt.d.mts} +14 -2
  12. package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
  13. package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
  14. package/dist/{index-D-LlB2nw.d.mts → index-tUR6pD3J.d.mts} +145 -809
  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-Bg-mO5dw.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 +14 -4
  25. package/dist/runtime/client/index.js +103 -205
  26. package/dist/runtime/index.d.ts +16 -4
  27. package/dist/runtime/index.js +2 -2
  28. package/dist/runtime/server/index.d.mts +1 -3
  29. package/dist/runtime/server/index.mjs +103 -205
  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-BBCnuprF.js} +103 -205
  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 +18 -17
  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
1
  import { Diagnostic, Node as Node$1 } from "typescript";
2
- import { RollupError, SourceMap } from "rollup";
2
+ import { RolldownError, SourceMap } from "rolldown";
3
3
  import { Serializable } from "child_process";
4
4
 
5
5
  //#region src/utils/byte-size.d.ts
@@ -44,10 +44,6 @@ declare const LISTENER_FLAGS: {
44
44
  readonly TargetDocument: number;
45
45
  readonly TargetWindow: number;
46
46
  readonly TargetBody: number;
47
- /**
48
- * @deprecated Prevented from new apps, but left in for older collections
49
- */
50
- readonly TargetParent: number;
51
47
  };
52
48
  declare const HOST_FLAGS: {
53
49
  readonly hasConnected: number;
@@ -130,6 +126,32 @@ declare const CMP_FLAGS: {
130
126
  * e.g. `shadow: { slotAssignment: 'manual' }` is set on the `@Component()` decorator
131
127
  */
132
128
  readonly shadowSlotAssignmentManual: number;
129
+ /**
130
+ * Determines if the shadow DOM mode is 'closed'.
131
+ * e.g. `encapsulation: { type: 'shadow', mode: 'closed' }` is set on the `@Component()` decorator
132
+ */
133
+ readonly shadowModeClosed: number;
134
+ /**
135
+ * Determines if the component should patch child node accessors for slot handling.
136
+ * e.g. `encapsulation: { type: 'none', patches: ['children'] }`
137
+ */
138
+ readonly patchChildren: number;
139
+ /**
140
+ * Determines if the component should patch cloneNode() for slot handling.
141
+ * e.g. `encapsulation: { type: 'none', patches: ['clone'] }`
142
+ */
143
+ readonly patchClone: number;
144
+ /**
145
+ * Determines if the component should patch appendChild/insertBefore for slot handling.
146
+ * e.g. `encapsulation: { type: 'none', patches: ['insert'] }`
147
+ */
148
+ readonly patchInsert: number;
149
+ /**
150
+ * Determines if the component should apply all slot patches.
151
+ * e.g. `encapsulation: { type: 'none', patches: ['all'] }`
152
+ * Equivalent to the global `experimentalSlotFixes` config option.
153
+ */
154
+ readonly patchAll: number;
133
155
  };
134
156
  /**
135
157
  * Default style mode id
@@ -247,42 +269,6 @@ declare const NODE_TYPES: {
247
269
  readonly DOCUMENT_FRAGMENT_NODE: 11;
248
270
  readonly NOTATION_NODE: 12;
249
271
  };
250
- /**
251
- * Represents a primitive type.
252
- * Described in https://w3c.github.io/webdriver-bidi/#type-script-PrimitiveProtocolValue.
253
- */
254
- declare const PrimitiveType: {
255
- readonly Undefined: "undefined";
256
- readonly Null: "null";
257
- readonly String: "string";
258
- readonly Number: "number";
259
- readonly SpecialNumber: "number";
260
- readonly Boolean: "boolean";
261
- readonly BigInt: "bigint";
262
- };
263
- type PrimitiveTypeValue = (typeof PrimitiveType)[keyof typeof PrimitiveType];
264
- /**
265
- * Represents a non-primitive type.
266
- * Described in https://w3c.github.io/webdriver-bidi/#type-script-RemoteValue.
267
- * @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead.
268
- */
269
- declare const NonPrimitiveType: {
270
- readonly Array: "array";
271
- readonly Date: "date";
272
- readonly Map: "map";
273
- readonly Object: "object";
274
- readonly RegularExpression: "regexp";
275
- readonly Set: "set";
276
- readonly Channel: "channel";
277
- readonly Symbol: "symbol";
278
- };
279
- type NonPrimitiveTypeValue = (typeof NonPrimitiveType)[keyof typeof NonPrimitiveType];
280
- /** @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead. */
281
- declare const TYPE_CONSTANT = "type";
282
- /** @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead. */
283
- declare const VALUE_CONSTANT = "value";
284
- /** @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead. */
285
- declare const SERIALIZED_PREFIX = "serialized:";
286
272
  //#endregion
287
273
  //#region src/utils/format-component-runtime-meta.d.ts
288
274
  declare const formatLazyBundleRuntimeMeta: (bundleId: any, cmps: ComponentCompilerMeta[]) => LazyBundleRuntimeData;
@@ -452,189 +438,8 @@ declare const isGlob: (str: string) => boolean;
452
438
  */
453
439
  declare const isRootPath: (p: string) => boolean;
454
440
  //#endregion
455
- //#region src/utils/types.d.ts
456
- type Serializeable = string | number | boolean | unknown;
457
- type LocalValueParam = Serializeable | Serializeable[] | [Serializeable, Serializeable][];
458
- type ScriptLocalValue = ScriptPrimitiveProtocolValue | ScriptArrayLocalValue | ScriptDateLocalValue | ScriptSymbolValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValue | ScriptSetLocalValue;
459
- type ScriptListLocalValue = ScriptLocalValue[];
460
- interface ScriptArrayLocalValue {
461
- type: 'array';
462
- value: ScriptListLocalValue;
463
- }
464
- interface ScriptDateLocalValue {
465
- type: 'date';
466
- value: string;
467
- }
468
- type ScriptMappingLocalValue = (ScriptLocalValue | ScriptLocalValue)[];
469
- interface ScriptMapLocalValue {
470
- type: 'map';
471
- value: ScriptMappingLocalValue;
472
- }
473
- interface ScriptObjectLocalValue {
474
- type: 'object';
475
- value: ScriptMappingLocalValue;
476
- }
477
- interface ScriptRegExpValue {
478
- pattern: string;
479
- flags?: string;
480
- }
481
- interface ScriptRegExpLocalValue {
482
- type: 'regexp';
483
- value: ScriptRegExpValue;
484
- }
485
- interface ScriptSetLocalValue {
486
- type: 'set';
487
- value: ScriptListLocalValue;
488
- }
489
- type ScriptPreloadScript = string;
490
- type ScriptRealm = string;
491
- type ScriptPrimitiveProtocolValue = ScriptUndefinedValue | ScriptNullValue | ScriptStringValue | ScriptNumberValue | ScriptBooleanValue | ScriptBigIntValue;
492
- interface ScriptUndefinedValue {
493
- type: 'undefined';
494
- }
495
- interface ScriptNullValue {
496
- type: 'null';
497
- }
498
- interface ScriptStringValue {
499
- type: 'string';
500
- value: string;
501
- }
502
- interface ScriptSymbolValue {
503
- type: 'symbol';
504
- value: string;
505
- }
506
- type ScriptSpecialNumber = 'NaN' | '-0' | 'Infinity' | '-Infinity';
507
- interface ScriptNumberValue {
508
- type: 'number';
509
- value: number | ScriptSpecialNumber;
510
- }
511
- interface ScriptBooleanValue {
512
- type: 'boolean';
513
- value: boolean;
514
- }
515
- interface ScriptBigIntValue {
516
- type: 'bigint';
517
- value: string;
518
- }
519
- //#endregion
520
- //#region src/utils/local-value.d.ts
521
- /**
522
- * Represents a local value with a specified type and optional value.
523
- * Described in https://w3c.github.io/webdriver-bidi/#type-script-LocalValue
524
- * @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead.
525
- */
526
- declare class LocalValue {
527
- type: PrimitiveTypeValue | NonPrimitiveTypeValue;
528
- value?: Serializeable | Serializeable[] | [Serializeable, Serializeable][];
529
- constructor(type: PrimitiveTypeValue | NonPrimitiveTypeValue, value?: LocalValueParam);
530
- /**
531
- * Creates a new LocalValue object with a string value.
532
- *
533
- * @param {string} value - The string value to be stored in the LocalValue object.
534
- * @returns {LocalValue} - The created LocalValue object.
535
- */
536
- static createStringValue(value: string): LocalValue;
537
- /**
538
- * Creates a new LocalValue object with a number value.
539
- *
540
- * @param {number} value - The number value.
541
- * @returns {LocalValue} - The created LocalValue object.
542
- */
543
- static createNumberValue(value: number): LocalValue;
544
- /**
545
- * Creates a new LocalValue object with a special number value.
546
- *
547
- * @param {number} value - The value of the special number.
548
- * @returns {LocalValue} - The created LocalValue object.
549
- */
550
- static createSpecialNumberValue(value: number): LocalValue;
551
- /**
552
- * Creates a new LocalValue object with an undefined value.
553
- * @returns {LocalValue} - The created LocalValue object.
554
- */
555
- static createUndefinedValue(): LocalValue;
556
- /**
557
- * Creates a new LocalValue object with a null value.
558
- * @returns {LocalValue} - The created LocalValue object.
559
- */
560
- static createNullValue(): LocalValue;
561
- /**
562
- * Creates a new LocalValue object with a boolean value.
563
- *
564
- * @param {boolean} value - The boolean value.
565
- * @returns {LocalValue} - The created LocalValue object.
566
- */
567
- static createBooleanValue(value: boolean): LocalValue;
568
- /**
569
- * Creates a new LocalValue object with a BigInt value.
570
- *
571
- * @param {BigInt} value - The BigInt value.
572
- * @returns {LocalValue} - The created LocalValue object.
573
- */
574
- static createBigIntValue(value: bigint): LocalValue;
575
- /**
576
- * Creates a new LocalValue object with an array.
577
- *
578
- * @param {Array} value - The array.
579
- * @returns {LocalValue} - The created LocalValue object.
580
- */
581
- static createArrayValue(value: Array<unknown>): LocalValue;
582
- /**
583
- * Creates a new LocalValue object with date value.
584
- *
585
- * @param {string} value - The date.
586
- * @returns {LocalValue} - The created LocalValue object.
587
- */
588
- static createDateValue(value: Date): LocalValue;
589
- /**
590
- * Creates a new LocalValue object of map value.
591
- * @param {Map} map - The map.
592
- * @returns {LocalValue} - The created LocalValue object.
593
- */
594
- static createMapValue(map: Map<unknown, unknown>): LocalValue;
595
- /**
596
- * Creates a new LocalValue object from the passed object.
597
- *
598
- * @param object the object to create a LocalValue from
599
- * @returns {LocalValue} - The created LocalValue object.
600
- */
601
- static createObjectValue(object: Record<string | number | symbol, unknown>): LocalValue;
602
- /**
603
- * Creates a new LocalValue object of regular expression value.
604
- *
605
- * @param {string} value - The value of the regular expression.
606
- * @returns {LocalValue} - The created LocalValue object.
607
- */
608
- static createRegularExpressionValue(value: {
609
- pattern: string;
610
- flags: string;
611
- }): LocalValue;
612
- /**
613
- * Creates a new LocalValue object with the specified value.
614
- * @param {Set} value - The value to be set.
615
- * @returns {LocalValue} - The created LocalValue object.
616
- */
617
- static createSetValue(value: ([unknown, unknown] | LocalValue)[]): LocalValue;
618
- /**
619
- * Creates a new LocalValue object with the given channel value
620
- *
621
- * @param {ChannelValue} value - The channel value.
622
- * @returns {LocalValue} - The created LocalValue object.
623
- */
624
- static createChannelValue(value: unknown): LocalValue;
625
- /**
626
- * Creates a new LocalValue object with a Symbol value.
627
- *
628
- * @param {Symbol} symbol - The Symbol value
629
- * @returns {LocalValue} - The created LocalValue object
630
- */
631
- static createSymbolValue(symbol: symbol): LocalValue;
632
- static getArgument(argument: unknown): LocalValue;
633
- asMap(): ScriptLocalValue;
634
- }
635
- //#endregion
636
- //#region src/utils/logger/logger-rollup.d.ts
637
- declare const loadRollupDiagnostics: (config: ValidatedConfig, compilerCtx: CompilerCtx, buildCtx: BuildCtx, rollupError: RollupError) => void;
441
+ //#region src/utils/logger/logger-rolldown.d.ts
442
+ declare const loadRolldownDiagnostics: (config: ValidatedConfig, compilerCtx: CompilerCtx, buildCtx: BuildCtx, rolldownError: RolldownError) => void;
638
443
  declare const createOnWarnFn: (diagnostics: Diagnostic$1[], bundleModulesFiles?: Module[]) => (warning: {
639
444
  code?: string;
640
445
  importer?: string;
@@ -913,35 +718,6 @@ declare function queryNonceMetaTagContent(doc: Document): string | undefined;
913
718
  * @returns The string with all special characters escaped.
914
719
  */
915
720
  declare const escapeRegExpSpecialCharacters: (text: string) => string;
916
- //#endregion
917
- //#region src/utils/remote-value.d.ts
918
- /**
919
- * RemoteValue class for deserializing LocalValue serialized objects back into their original form
920
- * @deprecated will be removed in v5. Use `@AttrDeserialize()` / `@PropDeserialize()` decorators instead.
921
- */
922
- declare class RemoteValue {
923
- /**
924
- * Deserializes a LocalValue serialized object back to its original JavaScript representation
925
- *
926
- * @param serialized The serialized LocalValue object
927
- * @returns The original JavaScript value/object
928
- */
929
- static fromLocalValue(serialized: ScriptLocalValue): any;
930
- /**
931
- * Utility method to deserialize multiple LocalValues at once
932
- *
933
- * @param serializedValues Array of serialized LocalValue objects
934
- * @returns Array of deserialized JavaScript values
935
- */
936
- static fromLocalValueArray(serializedValues: ScriptLocalValue[]): any[];
937
- /**
938
- * Verifies if the given object matches the structure of a serialized LocalValue
939
- *
940
- * @param obj Object to verify
941
- * @returns boolean indicating if the object has LocalValue structure
942
- */
943
- static isLocalValueObject(obj: any): boolean;
944
- }
945
721
  declare namespace result_d_exports {
946
722
  export { Result, err, map, ok, unwrap, unwrapErr };
947
723
  }
@@ -1057,31 +833,15 @@ declare const unwrap: <T, E>(result: Result<T, E>) => T;
1057
833
  */
1058
834
  declare const unwrapErr: <T, E>(result: Result<T, E>) => E;
1059
835
  //#endregion
1060
- //#region src/utils/serialize.d.ts
1061
- /**
1062
- * Serialize a value to a string that can be deserialized later.
1063
- * @param {unknown} value - The value to serialize.
1064
- * @returns {string} A string that can be deserialized later.
1065
- * @deprecated will be removed in v5. Use `@PropSerialize()` decorator instead.
1066
- */
1067
- declare function serializeProperty(value: unknown): string | number | boolean;
1068
- /**
1069
- * Deserialize a value from a string that was serialized earlier.
1070
- * @param {string} value - The string to deserialize.
1071
- * @returns {unknown} The deserialized value.
1072
- * @deprecated will be removed in v5. Use `@AttrDeserialize()` decorator instead.
1073
- */
1074
- declare function deserializeProperty(value: string): any;
1075
- //#endregion
1076
836
  //#region src/utils/sourcemaps.d.ts
1077
837
  /**
1078
- * Converts a rollup provided source map to one that Stencil can easily understand
1079
- * @param rollupSourceMap the sourcemap to transform
838
+ * Converts a rolldown provided source map to one that Stencil can easily understand
839
+ * @param rolldownSourceMap the sourcemap to transform
1080
840
  * @returns the transformed sourcemap
1081
841
  */
1082
- declare function rollupToStencilSourceMap(rollupSourceMap: null): null;
1083
- declare function rollupToStencilSourceMap(rollupSourceMap: undefined): null;
1084
- declare function rollupToStencilSourceMap(rollupSourceMap: SourceMap): SourceMap$1;
842
+ declare function rolldownToStencilSourceMap(rolldownSourceMap: null): null;
843
+ declare function rolldownToStencilSourceMap(rolldownSourceMap: undefined): null;
844
+ declare function rolldownToStencilSourceMap(rolldownSourceMap: SourceMap): SourceMap$1;
1085
845
  /**
1086
846
  * Generates a string used to link generated code with the original source, to be placed at the end of the generated
1087
847
  * code.
@@ -2075,7 +1835,7 @@ interface StencilConfig {
2075
1835
  */
2076
1836
  outputTargets?: OutputTarget[];
2077
1837
  /**
2078
- * The plugins config can be used to add your own rollup plugins.
1838
+ * The plugins config can be used to add your own rolldown plugins.
2079
1839
  * By default, Stencil does not come with Sass or PostCSS support.
2080
1840
  * However, either can be added using the plugin array.
2081
1841
  */
@@ -2110,27 +1870,14 @@ interface StencilConfig {
2110
1870
  */
2111
1871
  validatePrimaryPackageOutputTarget?: boolean;
2112
1872
  /**
2113
- * Passes custom configuration down to the "@rollup/plugin-commonjs" that Stencil uses under the hood.
2114
- * For further information: https://stenciljs.com/docs/module-bundling
2115
- */
2116
- commonjs?: BundlingConfig;
2117
- /**
2118
- * Passes custom configuration down to the "@rollup/plugin-node-resolve" that Stencil uses under the hood.
1873
+ * Passes custom configuration down to the "@rolldown/plugin-node-resolve" that Stencil uses under the hood.
2119
1874
  * For further information: https://stenciljs.com/docs/module-bundling
2120
1875
  */
2121
1876
  nodeResolve?: NodeResolveConfig;
2122
1877
  /**
2123
- * Passes custom configuration down to rollup itself, not all rollup options can be overridden.
1878
+ * Passes custom configuration down to rolldown itself, not all rolldown options can be overridden.
2124
1879
  */
2125
- rollupConfig?: RollupConfig;
2126
- /**
2127
- * Sets if the ES5 build should be generated or not. Stencil generates a modern build without ES5,
2128
- * whereas this setting to `true` will also create es5 builds for both dev and prod modes. Setting
2129
- * `buildEs5` to `prod` will only build ES5 in prod mode. Basically if the app does not need to run
2130
- * on legacy browsers (IE11 and Edge 18 and below), it's safe to not build ES5, which will also speed
2131
- * up build times. Defaults to `false`.
2132
- */
2133
- buildEs5?: boolean | 'prod';
1880
+ rolldownConfig?: RolldownConfig;
2134
1881
  /**
2135
1882
  * Sets if the JS browser files are minified or not. Stencil uses `terser` under the hood.
2136
1883
  * Defaults to `false` in dev mode and `true` in production mode.
@@ -2216,19 +1963,9 @@ interface StencilConfig {
2216
1963
  docs?: StencilDocsConfig;
2217
1964
  globalScript?: string;
2218
1965
  srcIndexHtml?: string;
2219
- /**
2220
- * Configuration for Stencil's integrated testing (Jest + Puppeteer).
2221
- *
2222
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
2223
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
2224
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
2225
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
2226
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
2227
- */
2228
- testing?: TestingConfig;
2229
1966
  maxConcurrentWorkers?: number;
2230
1967
  preamble?: string;
2231
- rollupPlugins?: {
1968
+ rolldownPlugins?: {
2232
1969
  before?: any[];
2233
1970
  after?: any[];
2234
1971
  };
@@ -2295,15 +2032,6 @@ interface StencilConfig {
2295
2032
  stencilCoreResolvedId?: string;
2296
2033
  }
2297
2034
  interface ConfigExtrasBase {
2298
- /**
2299
- * Experimental flag. Projects that use a Stencil library built using the `dist` output target may have trouble lazily
2300
- * loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
2301
- * lazily loads components in a way that works with additional bundlers. Setting this flag to `true` will increase
2302
- * the size of the compiled output. Defaults to `false`.
2303
- * @deprecated This flag has been deprecated in favor of `enableImportInjection`, which provides the same
2304
- * functionality. `experimentalImportInjection` will be removed in a future major version of Stencil.
2305
- */
2306
- experimentalImportInjection?: boolean;
2307
2035
  /**
2308
2036
  * Projects that use a Stencil library built using the `dist` output target may have trouble lazily
2309
2037
  * loading components when using a bundler such as Vite or Parcel. Setting this flag to `true` will change how Stencil
@@ -2322,12 +2050,6 @@ interface ConfigExtrasBase {
2322
2050
  * Defaults to `false`.
2323
2051
  */
2324
2052
  initializeNextTick?: boolean;
2325
- /**
2326
- * Enables the tagNameTransform option of `defineCustomElements()`, so the component tagName
2327
- * can be customized at runtime. Defaults to `false`.
2328
- * @deprecated This option has been deprecated in favour of `setTagTransformer` and `transformTag`. It will be removed in a future major version of Stencil.
2329
- */
2330
- tagNameTransform?: boolean;
2331
2053
  /**
2332
2054
  * Adds `transformTag` calls to css strings and querySelector(All) calls
2333
2055
  */
@@ -2430,10 +2152,6 @@ interface Config extends StencilConfig {
2430
2152
  * Whether to generate service worker
2431
2153
  */
2432
2154
  generateServiceWorker?: boolean;
2433
- /**
2434
- * Whether e2e tests are being run
2435
- */
2436
- e2eTests?: boolean;
2437
2155
  /**
2438
2156
  * Dev server address override
2439
2157
  */
@@ -2492,7 +2210,7 @@ type RequireFields<T, K extends keyof T> = T & { [P in K]-?: T[P] };
2492
2210
  /**
2493
2211
  * Fields in {@link Config} to make required for {@link ValidatedConfig}
2494
2212
  */
2495
- type StrictConfigFields = keyof Pick<Config, 'buildEs5' | 'cacheDir' | 'devMode' | 'devServer' | 'extras' | 'fsNamespace' | 'hashFileNames' | 'hashedFileNameLength' | 'hydratedFlag' | 'logLevel' | 'logger' | 'minifyCss' | 'minifyJs' | 'namespace' | 'outputTargets' | 'packageJsonFilePath' | 'rollupConfig' | 'rootDir' | 'srcDir' | 'srcIndexHtml' | 'sys' | 'testing' | 'transformAliasedImportPaths' | 'validatePrimaryPackageOutputTarget'>;
2213
+ type StrictConfigFields = keyof Pick<Config, 'cacheDir' | 'devMode' | 'devServer' | 'extras' | 'fsNamespace' | 'hashFileNames' | 'hashedFileNameLength' | 'hydratedFlag' | 'logLevel' | 'logger' | 'minifyCss' | 'minifyJs' | 'namespace' | 'outputTargets' | 'packageJsonFilePath' | 'rolldownConfig' | 'rootDir' | 'srcDir' | 'srcIndexHtml' | 'sys' | 'transformAliasedImportPaths' | 'validatePrimaryPackageOutputTarget'>;
2496
2214
  /**
2497
2215
  * A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
2498
2216
  * When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
@@ -2543,8 +2261,7 @@ interface StencilDevServerConfig {
2543
2261
  * EXPERIMENTAL!
2544
2262
  * During development, node modules can be independently requested and bundled, making for
2545
2263
  * faster build times. This is only available using the Stencil Dev Server throughout
2546
- * development. Production builds and builds with the `es5` flag will override
2547
- * this setting to `false`. Default is `false`.
2264
+ * development. Production builds will override this setting to `false`. Default is `false`.
2548
2265
  */
2549
2266
  experimentalDevModules?: boolean;
2550
2267
  /**
@@ -3077,25 +2794,6 @@ interface CompilerSystem {
3077
2794
  */
3078
2795
  createWorkerController?(maxConcurrentWorkers: number): WorkerMainController;
3079
2796
  encodeToBase64(str: string): string;
3080
- /**
3081
- * @deprecated
3082
- */
3083
- ensureDependencies?(opts: {
3084
- rootDir: string;
3085
- logger: Logger;
3086
- dependencies: CompilerDependency[];
3087
- }): Promise<{
3088
- stencilPath: string;
3089
- diagnostics: Diagnostic$1[];
3090
- }>;
3091
- /**
3092
- * @deprecated
3093
- */
3094
- ensureResources?(opts: {
3095
- rootDir: string;
3096
- logger: Logger;
3097
- dependencies: CompilerDependency[];
3098
- }): Promise<void>;
3099
2797
  /**
3100
2798
  * process.exit()
3101
2799
  */
@@ -3669,15 +3367,6 @@ interface StencilDocsConfig {
3669
3367
  };
3670
3368
  };
3671
3369
  }
3672
- interface BundlingConfig {
3673
- /**
3674
- * @deprecated the `namedExports` field is no longer honored by `@rollup/plugin-commonjs` and is not used by Stencil.
3675
- * This field can be safely removed from your Stencil configuration file.
3676
- */
3677
- namedExports?: {
3678
- [key: string]: string[];
3679
- };
3680
- }
3681
3370
  interface NodeResolveConfig {
3682
3371
  exportConditions?: string[];
3683
3372
  browser?: boolean;
@@ -3692,31 +3381,12 @@ interface NodeResolveConfig {
3692
3381
  resolveOnly?: ReadonlyArray<string | RegExp> | null | ((module: string) => boolean);
3693
3382
  rootDir?: string;
3694
3383
  allowExportsFolderMapping?: boolean;
3695
- /**
3696
- * @see https://github.com/browserify/resolve#resolveid-opts-cb
3697
- * @deprecated the `customResolveOptions` field is no longer honored in future versions of
3698
- * `@rollup/plugin-node-resolve`. If you are currently using it, please open a new issue in the Stencil repo to
3699
- * describe your use case & provide input (https://github.com/stenciljs/core/issues/new/choose)
3700
- */
3701
- customResolveOptions?: {
3702
- basedir?: string;
3703
- package?: string;
3704
- extensions?: string[];
3705
- readFile?: Function;
3706
- isFile?: Function;
3707
- isDirectory?: Function;
3708
- packageFilter?: Function;
3709
- pathFilter?: Function;
3710
- paths?: Function | string[];
3711
- moduleDirectory?: string | string[];
3712
- preserveSymlinks?: boolean;
3713
- };
3714
3384
  }
3715
- interface RollupConfig {
3716
- inputOptions?: RollupInputOptions;
3717
- outputOptions?: RollupOutputOptions;
3385
+ interface RolldownConfig {
3386
+ inputOptions?: RolldownInputOptions;
3387
+ outputOptions?: RolldownOutputOptions;
3718
3388
  }
3719
- interface RollupInputOptions {
3389
+ interface RolldownInputOptions {
3720
3390
  context?: string;
3721
3391
  moduleContext?: ((id: string) => string) | {
3722
3392
  [id: string]: string;
@@ -3725,326 +3395,11 @@ interface RollupInputOptions {
3725
3395
  maxParallelFileOps?: number;
3726
3396
  external?: (string | RegExp)[] | string | RegExp | ((source: string, importer: string | undefined, isResolved: boolean) => boolean | null | undefined);
3727
3397
  }
3728
- interface RollupOutputOptions {
3398
+ interface RolldownOutputOptions {
3729
3399
  globals?: {
3730
3400
  [name: string]: string;
3731
3401
  } | ((name: string) => string);
3732
3402
  }
3733
- /**
3734
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
3735
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
3736
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
3737
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
3738
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
3739
- */
3740
- interface Testing {
3741
- run(opts: TestingRunOptions): Promise<boolean>;
3742
- destroy(): Promise<void>;
3743
- }
3744
- declare type Path = string;
3745
- declare type TransformerConfig = [string, Record<string, unknown>];
3746
- /**
3747
- * Options for initiating a run of Stencil tests (spec and/or end-to-end)
3748
- *
3749
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
3750
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
3751
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
3752
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
3753
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
3754
- */
3755
- interface TestingRunOptions {
3756
- /**
3757
- * If true, run end-to-end tests
3758
- */
3759
- e2e?: boolean;
3760
- /**
3761
- * If true, run screenshot tests
3762
- */
3763
- screenshot?: boolean;
3764
- /**
3765
- * If true, run spec tests
3766
- */
3767
- spec?: boolean;
3768
- /**
3769
- * If true, update 'golden' screenshots. Otherwise, compare against priori.
3770
- */
3771
- updateScreenshot?: boolean;
3772
- }
3773
- /**
3774
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
3775
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
3776
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
3777
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
3778
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
3779
- */
3780
- interface JestConfig {
3781
- /**
3782
- * This option tells Jest that all imported modules in your tests should be mocked automatically.
3783
- * All modules used in your tests will have a replacement implementation, keeping the API surface. Default: false
3784
- */
3785
- automock?: boolean;
3786
- /**
3787
- * By default, Jest runs all tests and produces all errors into the console upon completion.
3788
- * The bail config option can be used here to have Jest stop running tests after the first failure. Default: false
3789
- */
3790
- bail?: boolean | number;
3791
- /**
3792
- * The directory where Jest should store its cached dependency information. Jest attempts to scan your dependency tree once (up-front)
3793
- * and cache it in order to ease some of the filesystem raking that needs to happen while running tests. This config option lets you
3794
- * customize where Jest stores that cache data on disk. Default: "/tmp/<path>"
3795
- */
3796
- cacheDirectory?: string;
3797
- /**
3798
- * Automatically clear mock calls and instances between every test. Equivalent to calling jest.clearAllMocks()
3799
- * between each test. This does not remove any mock implementation that may have been provided. Default: false
3800
- */
3801
- clearMocks?: boolean;
3802
- /**
3803
- * Indicates whether the coverage information should be collected while executing the test. Because this retrofits all
3804
- * executed files with coverage collection statements, it may significantly slow down your tests. Default: false
3805
- */
3806
- collectCoverage?: boolean;
3807
- /**
3808
- * An array of glob patterns indicating a set of files for which coverage information should be collected.
3809
- * If a file matches the specified glob pattern, coverage information will be collected for it even if no tests exist
3810
- * for this file and it's never required in the test suite. Default: undefined
3811
- */
3812
- collectCoverageFrom?: any[];
3813
- /**
3814
- * The directory where Jest should output its coverage files. Default: undefined
3815
- */
3816
- coverageDirectory?: string;
3817
- /**
3818
- * An array of regexp pattern strings that are matched against all file paths before executing the test. If the file path matches
3819
- * any of the patterns, coverage information will be skipped. These pattern strings match against the full path.
3820
- * Use the <rootDir> string token to include the path to your project's root directory to prevent it from accidentally
3821
- * ignoring all of your files in different environments that may have different root directories.
3822
- * Example: ["<rootDir>/build/", "<rootDir>/node_modules/"]. Default: ["/node_modules/"]
3823
- */
3824
- coveragePathIgnorePatterns?: any[];
3825
- /**
3826
- * A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used.
3827
- * Default: `["json", "lcov", "text"]`
3828
- */
3829
- coverageReporters?: any[];
3830
- /**
3831
- * This will be used to configure minimum threshold enforcement for coverage results. Thresholds can be specified as global,
3832
- * as a glob, and as a directory or file path. If thresholds aren't met, jest will fail. Thresholds specified as a positive
3833
- * number are taken to be the minimum percentage required. Thresholds specified as a negative number represent the maximum
3834
- * number of uncovered entities allowed. Default: undefined
3835
- */
3836
- coverageThreshold?: any;
3837
- errorOnDeprecated?: boolean;
3838
- forceCoverageMatch?: any[];
3839
- globals?: any;
3840
- globalSetup?: string;
3841
- globalTeardown?: string;
3842
- /**
3843
- * An array of directory names to be searched recursively up from the requiring module's location. Setting this option will
3844
- * override the default, if you wish to still search node_modules for packages include it along with any other
3845
- * options: ["node_modules", "bower_components"]. Default: ["node_modules"]
3846
- */
3847
- moduleDirectories?: string[];
3848
- /**
3849
- * An array of file extensions your modules use. If you require modules without specifying a file extension,
3850
- * these are the extensions Jest will look for. Default: ['ts', 'tsx', 'js', 'json']
3851
- */
3852
- moduleFileExtensions?: string[];
3853
- moduleNameMapper?: any;
3854
- modulePaths?: any[];
3855
- modulePathIgnorePatterns?: any[];
3856
- notify?: boolean;
3857
- notifyMode?: string;
3858
- preset?: string;
3859
- prettierPath?: string;
3860
- projects?: any;
3861
- reporters?: any;
3862
- resetMocks?: boolean;
3863
- resetModules?: boolean;
3864
- resolver?: Path | null;
3865
- restoreMocks?: boolean;
3866
- rootDir?: string;
3867
- roots?: any[];
3868
- runner?: string;
3869
- /**
3870
- * The paths to modules that run some code to configure or set up the testing environment before each test.
3871
- * Since every test runs in its own environment, these scripts will be executed in the testing environment
3872
- * immediately before executing the test code itself. Default: []
3873
- */
3874
- setupFiles?: string[];
3875
- setupFilesAfterEnv?: string[];
3876
- snapshotSerializers?: any[];
3877
- testEnvironment?: string;
3878
- testEnvironmentOptions?: any;
3879
- testMatch?: string[];
3880
- testPathIgnorePatterns?: string[];
3881
- testPreset?: string;
3882
- testRegex?: string[];
3883
- testResultsProcessor?: string;
3884
- testRunner?: string;
3885
- testURL?: string;
3886
- timers?: string;
3887
- transform?: {
3888
- [regex: string]: Path | TransformerConfig;
3889
- };
3890
- transformIgnorePatterns?: any[];
3891
- unmockedModulePathPatterns?: any[];
3892
- verbose?: boolean;
3893
- watchPathIgnorePatterns?: any[];
3894
- }
3895
- /**
3896
- * Configuration for Stencil's integrated testing (Jest + Puppeteer).
3897
- *
3898
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
3899
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
3900
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
3901
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
3902
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
3903
- */
3904
- interface TestingConfig extends JestConfig {
3905
- /**
3906
- * The `allowableMismatchedPixels` value is used to determine an acceptable
3907
- * number of pixels that can be mismatched before the image is considered
3908
- * to have changes. Realistically, two screenshots representing the same
3909
- * content may have a small number of pixels that are not identical due to
3910
- * anti-aliasing, which is perfectly normal. If the `allowableMismatchedRatio`
3911
- * is provided it will take precedence, otherwise `allowableMismatchedPixels`
3912
- * will be used.
3913
- */
3914
- allowableMismatchedPixels?: number;
3915
- /**
3916
- * The `allowableMismatchedRatio` ranges from `0` to `1` and is used to
3917
- * determine an acceptable ratio of pixels that can be mismatched before
3918
- * the image is considered to have changes. Realistically, two screenshots
3919
- * representing the same content may have a small number of pixels that
3920
- * are not identical due to anti-aliasing, which is perfectly normal. The
3921
- * `allowableMismatchedRatio` is the number of pixels that were mismatched,
3922
- * divided by the total number of pixels in the screenshot. For example,
3923
- * a ratio value of `0.06` means 6% of the pixels can be mismatched before
3924
- * the image is considered to have changes. If the `allowableMismatchedRatio`
3925
- * is provided it will take precedence, otherwise `allowableMismatchedPixels`
3926
- * will be used.
3927
- */
3928
- allowableMismatchedRatio?: number;
3929
- /**
3930
- * Matching threshold while comparing two screenshots. Value ranges from `0` to `1`.
3931
- * Smaller values make the comparison more sensitive. The `pixelmatchThreshold`
3932
- * value helps to ignore anti-aliasing. Default: `0.1`
3933
- */
3934
- pixelmatchThreshold?: number;
3935
- /**
3936
- * Additional arguments to pass to the browser instance.
3937
- */
3938
- browserArgs?: string[];
3939
- /**
3940
- * Path to a Chromium or Chrome executable to run instead of the bundled Chromium.
3941
- * @default env.PUPPETEER_EXECUTABLE_PATH || env.CHROME_PATH || puppeteer.computeExecutablePath()
3942
- */
3943
- browserExecutablePath?: string;
3944
- /**
3945
- * Url of remote Chrome instance to use instead of local Chrome.
3946
- */
3947
- browserWSEndpoint?: string;
3948
- /**
3949
- * The browser channel to use for e2e tests (stable, beta, dev or canary).
3950
- * @default 'chrome'
3951
- */
3952
- browserChannel?: 'chrome' | 'chrome-beta' | 'chrome-dev' | 'chrome-canary';
3953
- /**
3954
- * Whether to run browser e2e tests in headless mode using Chrome Headless Shell
3955
- * @see https://developer.chrome.com/blog/chrome-headless-shell
3956
- * @default shell
3957
- */
3958
- browserHeadless?: boolean | 'shell';
3959
- /**
3960
- * Slows down e2e browser operations by the specified amount of milliseconds.
3961
- * Useful so that you can see what is going on.
3962
- */
3963
- browserSlowMo?: number;
3964
- /**
3965
- * By default, all E2E pages wait until the "load" event, this global setting can be used
3966
- * to change the default `waitUntil` behavior.
3967
- */
3968
- browserWaitUntil?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2';
3969
- /**
3970
- * Whether to auto-open a DevTools panel for each tab.
3971
- * If this option is true, the headless option will be set false
3972
- */
3973
- browserDevtools?: boolean;
3974
- /**
3975
- * Array of browser emulations to be used during _screenshot_ tests. A full screenshot
3976
- * test is ran for each emulation.
3977
- *
3978
- * To emulate a device display for your e2e tests, use the `setViewport` method on a test's E2E page.
3979
- * An example can be found in [the Stencil docs](https://stenciljs.com/docs/end-to-end-testing#emulate-a-display).
3980
- */
3981
- emulate?: EmulateConfig[];
3982
- /**
3983
- * Path to the Screenshot Connector module.
3984
- */
3985
- screenshotConnector?: string;
3986
- /**
3987
- * Timeout for the pixelmatch worker to resolve (in ms).
3988
- * @default 2500
3989
- */
3990
- screenshotTimeout?: number | null;
3991
- /**
3992
- * Amount of time in milliseconds to wait before a screenshot is taken.
3993
- */
3994
- waitBeforeScreenshot?: number;
3995
- }
3996
- /**
3997
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
3998
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
3999
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
4000
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
4001
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
4002
- */
4003
- interface EmulateConfig {
4004
- /**
4005
- * Predefined device descriptor name, such as "iPhone X" or "Nexus 10".
4006
- * For a complete list please see: https://github.com/puppeteer/puppeteer/blob/main/src/common/DeviceDescriptors.ts
4007
- */
4008
- device?: string;
4009
- /**
4010
- * User-Agent to be used. Defaults to the user-agent of the installed Puppeteer version.
4011
- */
4012
- userAgent?: string;
4013
- viewport?: EmulateViewport;
4014
- }
4015
- /**
4016
- * @deprecated Integrated testing support will be removed in Stencil v5. Migrate spec tests to
4017
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) and e2e / browser tests to either
4018
- * [`@stencil/vitest`](https://github.com/stenciljs/vitest) or
4019
- * [`@stencil/playwright`](https://github.com/stenciljs/playwright).
4020
- * See https://github.com/stenciljs/core/issues/6584 for full discussion and migration guidance.
4021
- */
4022
- interface EmulateViewport {
4023
- /**
4024
- * Page width in pixels.
4025
- */
4026
- width: number;
4027
- /**
4028
- * page height in pixels.
4029
- */
4030
- height: number;
4031
- /**
4032
- * Specify device scale factor (can be thought of as dpr). Defaults to 1.
4033
- */
4034
- deviceScaleFactor?: number;
4035
- /**
4036
- * Whether the meta viewport tag is taken into account. Defaults to false.
4037
- */
4038
- isMobile?: boolean;
4039
- /**
4040
- * Specifies if viewport supports touch events. Defaults to false
4041
- */
4042
- hasTouch?: boolean;
4043
- /**
4044
- * Specifies if viewport is in landscape mode. Defaults to false.
4045
- */
4046
- isLandscape?: boolean;
4047
- }
4048
3403
  /**
4049
3404
  * This sets the log level hierarchy for our terminal logger, ranging from
4050
3405
  * most to least verbose.
@@ -4144,8 +3499,16 @@ interface OutputTargetDist extends OutputTargetValidationConfig {
4144
3499
  */
4145
3500
  esmLoaderPath?: string;
4146
3501
  copy?: CopyTask[];
4147
- polyfills?: boolean;
4148
3502
  empty?: boolean;
3503
+ /**
3504
+ * Whether to generate CommonJS (CJS) bundles.
3505
+ *
3506
+ * When `true`, generates CJS output in `dist/cjs/` and `dist/index.cjs.js`.
3507
+ * When `false` (default in v5+), only ESM bundles are generated.
3508
+ *
3509
+ * @default false
3510
+ */
3511
+ cjs?: boolean;
4149
3512
  }
4150
3513
  interface OutputTargetDistCollection extends OutputTargetValidationConfig {
4151
3514
  type: 'dist-collection';
@@ -4182,15 +3545,10 @@ interface OutputTargetDistLazy extends OutputTargetBase {
4182
3545
  type: 'dist-lazy';
4183
3546
  dir?: string;
4184
3547
  esmDir?: string;
4185
- esmEs5Dir?: string;
4186
- systemDir?: string;
4187
3548
  cjsDir?: string;
4188
- polyfills?: boolean;
4189
3549
  isBrowserBuild?: boolean;
4190
3550
  esmIndexFile?: string;
4191
3551
  cjsIndexFile?: string;
4192
- systemLoaderFile?: string;
4193
- legacyLoaderFile?: string;
4194
3552
  empty?: boolean;
4195
3553
  }
4196
3554
  interface OutputTargetDistGlobalStyles extends OutputTargetBase {
@@ -4201,21 +3559,13 @@ interface OutputTargetDistLazyLoader extends OutputTargetBase {
4201
3559
  type: 'dist-lazy-loader';
4202
3560
  dir: string;
4203
3561
  esmDir: string;
4204
- esmEs5Dir?: string;
4205
- cjsDir: string;
3562
+ cjsDir?: string;
4206
3563
  componentDts: string;
4207
3564
  empty: boolean;
4208
3565
  }
4209
3566
  interface OutputTargetHydrate extends OutputTargetBase {
4210
3567
  type: 'dist-hydrate-script';
4211
3568
  dir?: string;
4212
- /**
4213
- * Whether to generate a package.json file in the hydrate output directory.
4214
- * Defaults to `true`
4215
- * @deprecated
4216
- * In the next major release, the `package.json` file will be completely removed from the `dist-hydrate-script` output (use `exports` from your library's main `package.json`)
4217
- */
4218
- generatePackageJson?: boolean;
4219
3569
  /**
4220
3570
  * Module IDs that should not be bundled into the script.
4221
3571
  * By default, all node builtin's, such as `fs` or `path`
@@ -4224,6 +3574,15 @@ interface OutputTargetHydrate extends OutputTargetBase {
4224
3574
  external?: string[];
4225
3575
  empty?: boolean;
4226
3576
  minify?: boolean;
3577
+ /**
3578
+ * Whether to generate CommonJS (CJS) bundles.
3579
+ *
3580
+ * When `true`, generates CJS output as `index.cjs` alongside ESM `index.js`.
3581
+ * When `false` (default in v5+), only ESM bundles are generated.
3582
+ *
3583
+ * @default false
3584
+ */
3585
+ cjs?: boolean;
4227
3586
  }
4228
3587
  interface OutputTargetCustom extends OutputTargetBase {
4229
3588
  type: 'custom';
@@ -4481,12 +3840,6 @@ interface OutputTargetWww extends OutputTargetBase {
4481
3840
  * Default: `/`
4482
3841
  */
4483
3842
  baseUrl?: string;
4484
- /**
4485
- * By default, stencil will include all the polyfills required by legacy browsers in the ES5 build.
4486
- * If it's `false`, stencil will not emit this polyfills anymore and it's your responsibility to provide them before
4487
- * stencil initializes.
4488
- */
4489
- polyfills?: boolean;
4490
3843
  /**
4491
3844
  * Path to an external node module which has exports of the prerender config object.
4492
3845
  * ```
@@ -4602,8 +3955,8 @@ interface WorkerOptions {
4602
3955
  maxConcurrentTasksPerWorker?: number;
4603
3956
  logger?: Logger;
4604
3957
  }
4605
- interface RollupInterface {
4606
- rollup: {
3958
+ interface RolldownInterface {
3959
+ rolldown: {
4607
3960
  (config: any): Promise<any>;
4608
3961
  };
4609
3962
  plugins: {
@@ -4644,14 +3997,26 @@ interface OptimizeCssInput {
4644
3997
  resolveUrl?: (url: string) => Promise<string> | string;
4645
3998
  }
4646
3999
  /**
4647
- * This is not a real interface describing the options which can
4648
- * be passed to autoprefixer, for that see the docs, here:
4649
- * https://github.com/postcss/autoprefixer#options
4000
+ * Options for autoprefixing CSS via Lightning CSS.
4001
+ *
4002
+ * The `targets` field accepts a browserslist query array. When omitted,
4003
+ * Stencil uses a modern default browser list suitable for Stencil v5+.
4650
4004
  *
4651
- * Instead, this basically just serves as a label type to track
4652
- * that arguments are being passed consistently.
4005
+ * @example
4006
+ * ```ts
4007
+ * autoprefixer: {
4008
+ * targets: ['last 2 Chrome versions', 'last 2 Safari versions', 'iOS >= 14'],
4009
+ * }
4010
+ * ```
4653
4011
  */
4654
- type AutoprefixerOptions = object;
4012
+ interface AutoprefixerOptions {
4013
+ /**
4014
+ * A browserslist query array describing which browsers to generate vendor
4015
+ * prefixes for. Defaults to a modern set of browsers appropriate for
4016
+ * Stencil v5+.
4017
+ */
4018
+ targets?: string[];
4019
+ }
4655
4020
  /**
4656
4021
  * Output from CSS optimization functions, wrapping up optimized
4657
4022
  * CSS and any diagnostics produced during optimization.
@@ -4663,7 +4028,7 @@ interface OptimizeCssOutput {
4663
4028
  interface OptimizeJsInput {
4664
4029
  input: string;
4665
4030
  filePath?: string;
4666
- target?: 'es5' | 'latest';
4031
+ target?: 'latest';
4667
4032
  pretty?: boolean;
4668
4033
  sourceMap?: boolean;
4669
4034
  }
@@ -4677,56 +4042,6 @@ interface LazyRequire {
4677
4042
  require(fromDir: string, moduleId: string): any;
4678
4043
  getModulePath(fromDir: string, moduleId: string): string;
4679
4044
  }
4680
- /**
4681
- * @deprecated This interface is no longer used by Stencil
4682
- * TODO(STENCIL-743): Remove this interface
4683
- */
4684
- interface FsWatcherItem {
4685
- close(): void;
4686
- }
4687
- /**
4688
- * @deprecated This interface is no longer used by Stencil
4689
- * TODO(STENCIL-743): Remove this interface
4690
- */
4691
- interface MakeDirectoryOptions {
4692
- /**
4693
- * Indicates whether parent folders should be created.
4694
- * @default false
4695
- */
4696
- recursive?: boolean;
4697
- /**
4698
- * A file mode. If a string is passed, it is parsed as an octal integer. If not specified
4699
- * @default 0o777.
4700
- */
4701
- mode?: number;
4702
- }
4703
- /**
4704
- * @deprecated This interface is no longer used by Stencil
4705
- * TODO(STENCIL-743): Remove this interface
4706
- */
4707
- interface FsStats {
4708
- isFile(): boolean;
4709
- isDirectory(): boolean;
4710
- isBlockDevice(): boolean;
4711
- isCharacterDevice(): boolean;
4712
- isSymbolicLink(): boolean;
4713
- isFIFO(): boolean;
4714
- isSocket(): boolean;
4715
- dev: number;
4716
- ino: number;
4717
- mode: number;
4718
- nlink: number;
4719
- uid: number;
4720
- gid: number;
4721
- rdev: number;
4722
- size: number;
4723
- blksize: number;
4724
- blocks: number;
4725
- atime: Date;
4726
- mtime: Date;
4727
- ctime: Date;
4728
- birthtime: Date;
4729
- }
4730
4045
  interface Compiler {
4731
4046
  build(): Promise<CompilerBuildResults>;
4732
4047
  createWatcher(): Promise<CompilerWatcher>;
@@ -4808,8 +4123,8 @@ interface TranspileOptions {
4808
4123
  */
4809
4124
  styleImportData?: 'queryparams' | string | undefined;
4810
4125
  /**
4811
- * The JavaScript source target TypeScript should to transpile to. Values can be
4812
- * `latest`, `esnext`, `es2017`, `es2015`, or `es5`. Defaults to `latest`.
4126
+ * The JavaScript source target TypeScript should transpile to. Values can be
4127
+ * `latest`, `esnext`, `es2020`, `es2017`, or `es2015`. Defaults to `latest`.
4813
4128
  */
4814
4129
  target?: CompileTarget;
4815
4130
  /**
@@ -4859,7 +4174,7 @@ interface TranspileOptions {
4859
4174
  */
4860
4175
  additionalTagTransformers?: boolean;
4861
4176
  }
4862
- type CompileTarget = 'latest' | 'esnext' | 'es2020' | 'es2019' | 'es2018' | 'es2017' | 'es2015' | 'es5' | string | undefined;
4177
+ type CompileTarget = 'latest' | 'esnext' | 'es2020' | 'es2019' | 'es2018' | 'es2017' | 'es2015' | string | undefined;
4863
4178
  interface TranspileResults {
4864
4179
  code: string;
4865
4180
  data?: any[];
@@ -4960,6 +4275,7 @@ interface BuildFeatures {
4960
4275
  formAssociated: boolean;
4961
4276
  shadowDom: boolean;
4962
4277
  shadowDelegatesFocus: boolean;
4278
+ shadowModeClosed: boolean;
4963
4279
  shadowSlotAssignmentManual: boolean;
4964
4280
  scoped: boolean;
4965
4281
  /**
@@ -4982,6 +4298,10 @@ interface BuildFeatures {
4982
4298
  vdomText: boolean;
4983
4299
  vdomXlink: boolean;
4984
4300
  slotRelocation: boolean;
4301
+ patchAll: boolean;
4302
+ patchChildren: boolean;
4303
+ patchClone: boolean;
4304
+ patchInsert: boolean;
4985
4305
  slot: boolean;
4986
4306
  svg: boolean;
4987
4307
  element: boolean;
@@ -4990,10 +4310,6 @@ interface BuildFeatures {
4990
4310
  hostListenerTargetWindow: boolean;
4991
4311
  hostListenerTargetDocument: boolean;
4992
4312
  hostListenerTargetBody: boolean;
4993
- /**
4994
- * @deprecated Prevented from new apps, but left in for older collections
4995
- */
4996
- hostListenerTargetParent: boolean;
4997
4313
  hostListenerTarget: boolean;
4998
4314
  method: boolean;
4999
4315
  prop: boolean;
@@ -5037,7 +4353,6 @@ interface BuildConditionals extends Partial<BuildFeatures> {
5037
4353
  initializeNextTick?: boolean;
5038
4354
  shadowDomShim?: boolean;
5039
4355
  asyncQueue?: boolean;
5040
- transformTagName?: boolean;
5041
4356
  additionalTagTransformers?: boolean | 'prod';
5042
4357
  attachStyles?: boolean;
5043
4358
  experimentalSlotFixes?: boolean;
@@ -5045,11 +4360,11 @@ interface BuildConditionals extends Partial<BuildFeatures> {
5045
4360
  addGlobalStyleToComponents?: boolean | 'client';
5046
4361
  }
5047
4362
  type ModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd' | 'commonjs' | 'esm' | 'module' | 'systemjs';
5048
- interface RollupResultModule {
4363
+ interface RolldownResultModule {
5049
4364
  id: string;
5050
4365
  }
5051
- interface RollupResults {
5052
- modules: RollupResultModule[];
4366
+ interface RolldownResults {
4367
+ modules: RolldownResultModule[];
5053
4368
  }
5054
4369
  interface UpdatedLazyBuildCtx {
5055
4370
  name: 'esm-browser' | 'esm' | 'cjs' | 'system';
@@ -5067,8 +4382,6 @@ interface BuildCtx {
5067
4382
  compilerCtx: CompilerCtx;
5068
4383
  esmBrowserComponentBundle: ReadonlyArray<BundleModule>;
5069
4384
  esmComponentBundle: ReadonlyArray<BundleModule>;
5070
- es5ComponentBundle: ReadonlyArray<BundleModule>;
5071
- systemComponentBundle: ReadonlyArray<BundleModule>;
5072
4385
  commonJsComponentBundle: ReadonlyArray<BundleModule>;
5073
4386
  components: ComponentCompilerMeta[];
5074
4387
  componentGraph: Map<string, string[]>;
@@ -5107,7 +4420,7 @@ interface BuildCtx {
5107
4420
  pendingCopyTasks: Promise<CopyResults>[];
5108
4421
  progress(task: BuildTask): void;
5109
4422
  requiresFullBuild: boolean;
5110
- rollupResults?: RollupResults;
4423
+ rolldownResults?: RolldownResults;
5111
4424
  scriptsAdded: string[];
5112
4425
  scriptsDeleted: string[];
5113
4426
  startTime: number;
@@ -5149,18 +4462,15 @@ interface CompilerBuildStats {
5149
4462
  minifyCss: boolean;
5150
4463
  hashFileNames: boolean;
5151
4464
  hashedFileNameLength: number;
5152
- buildEs5: boolean | 'prod';
5153
4465
  };
5154
4466
  formats: {
5155
4467
  esmBrowser: ReadonlyArray<CompilerBuildStatBundle>;
5156
4468
  esm: ReadonlyArray<CompilerBuildStatBundle>;
5157
- es5: ReadonlyArray<CompilerBuildStatBundle>;
5158
- system: ReadonlyArray<CompilerBuildStatBundle>;
5159
4469
  commonjs: ReadonlyArray<CompilerBuildStatBundle>;
5160
4470
  };
5161
4471
  components: BuildComponent[];
5162
4472
  entries: EntryModule[];
5163
- rollupResults: RollupResults;
4473
+ rolldownResults: RolldownResults;
5164
4474
  sourceGraph?: BuildSourceGraph;
5165
4475
  componentGraph: BuildResultsComponentGraph;
5166
4476
  collections: CompilerBuildStatCollection[];
@@ -5186,20 +4496,20 @@ interface BuildComponent {
5186
4496
  dependencyOf?: string[];
5187
4497
  dependencies?: string[];
5188
4498
  }
5189
- type SourceTarget = 'es5' | 'es2017' | 'latest';
4499
+ type SourceTarget = 'es2017' | 'latest';
5190
4500
  /**
5191
- * A note regarding Rollup types:
4501
+ * A note regarding Rolldown types:
5192
4502
  * As of this writing, there is no great way to import external types for packages that are directly embedded in the
5193
- * Stencil source. As a result, some types are duplicated here for Rollup that will be used within the codebase.
5194
- * Updates to rollup may require these typings to be updated.
4503
+ * Stencil source. As a result, some types are duplicated here for Rolldown that will be used within the codebase.
4504
+ * Updates to rolldown may require these typings to be updated.
5195
4505
  */
5196
- type RollupResult = RollupChunkResult | RollupAssetResult;
5197
- interface RollupAssetResult {
4506
+ type RolldownResult = RolldownChunkResult | RolldownAssetResult;
4507
+ interface RolldownAssetResult {
5198
4508
  type: 'asset';
5199
4509
  fileName: string;
5200
4510
  content: string;
5201
4511
  }
5202
- interface RollupChunkResult {
4512
+ interface RolldownChunkResult {
5203
4513
  type: 'chunk';
5204
4514
  entryKey: string;
5205
4515
  fileName: string;
@@ -5211,9 +4521,9 @@ interface RollupChunkResult {
5211
4521
  isBrowserLoader: boolean;
5212
4522
  imports: string[];
5213
4523
  moduleFormat: ModuleFormat;
5214
- map?: RollupSourceMap;
4524
+ map?: RolldownSourceMap;
5215
4525
  }
5216
- interface RollupSourceMap {
4526
+ interface RolldownSourceMap {
5217
4527
  file: string;
5218
4528
  mappings: string;
5219
4529
  names: string[];
@@ -5233,7 +4543,7 @@ type OptimizeJsResult = {
5233
4543
  };
5234
4544
  interface BundleModule {
5235
4545
  entryKey: string;
5236
- rollupResult: RollupChunkResult;
4546
+ rolldownResult: RolldownChunkResult;
5237
4547
  cmps: ComponentCompilerMeta[];
5238
4548
  output: BundleModuleOutput;
5239
4549
  }
@@ -5328,14 +4638,14 @@ interface CompilerCtx {
5328
4638
  moduleMap: ModuleMap;
5329
4639
  nodeMap: NodeMap;
5330
4640
  resolvedCollections: Set<string>;
5331
- rollupCacheHydrate: any;
5332
- rollupCacheLazy: any;
5333
- rollupCacheNative: any;
4641
+ rolldownCacheHydrate: any;
4642
+ rolldownCacheLazy: any;
4643
+ rolldownCacheNative: any;
5334
4644
  styleModeNames: Set<string>;
5335
4645
  changedModules: Set<string>;
5336
4646
  changedFiles: Set<string>;
5337
4647
  worker?: CompilerWorkerContext;
5338
- rollupCache: Map<string, any>;
4648
+ rolldownCache: Map<string, any>;
5339
4649
  reset(): void;
5340
4650
  }
5341
4651
  type NodeMap = WeakMap<any, ComponentCompilerMeta>;
@@ -5366,14 +4676,14 @@ interface ComponentCompilerFeatures {
5366
4676
  hasListenerTargetWindow: boolean;
5367
4677
  hasListenerTargetDocument: boolean;
5368
4678
  hasListenerTargetBody: boolean;
5369
- /**
5370
- * @deprecated Prevented from new apps, but left in for older collections
5371
- */
5372
- hasListenerTargetParent: boolean;
5373
4679
  hasMember: boolean;
5374
4680
  hasMethod: boolean;
5375
4681
  hasMode: boolean;
5376
4682
  hasModernPropertyDecls: boolean;
4683
+ hasPatchAll: boolean;
4684
+ hasPatchChildren: boolean;
4685
+ hasPatchClone: boolean;
4686
+ hasPatchInsert: boolean;
5377
4687
  hasProp: boolean;
5378
4688
  hasPropBoolean: boolean;
5379
4689
  hasPropNumber: boolean;
@@ -5472,11 +4782,22 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
5472
4782
  properties: ComponentCompilerProperty[];
5473
4783
  serializers: ComponentCompilerChangeHandler[];
5474
4784
  shadowDelegatesFocus: boolean;
4785
+ /**
4786
+ * Shadow DOM mode. 'open' (default) or 'closed'.
4787
+ * Only applicable when encapsulation is 'shadow'.
4788
+ */
4789
+ shadowMode: 'open' | 'closed' | null;
5475
4790
  /**
5476
4791
  * Slot assignment mode for shadow DOM. 'manual', enables imperative slotting
5477
4792
  * using HTMLSlotElement.assign(). Only applicable when encapsulation is 'shadow'.
5478
4793
  */
5479
4794
  slotAssignment: 'manual' | null;
4795
+ /**
4796
+ * Per-component slot patches for non-shadow DOM components.
4797
+ * These patches enable proper slot behavior without native Shadow DOM.
4798
+ * Only applicable when encapsulation is 'none' or 'scoped'.
4799
+ */
4800
+ patches: ComponentPatches | null;
5480
4801
  sourceFilePath: string;
5481
4802
  sourceMapPath: string;
5482
4803
  states: ComponentCompilerState[];
@@ -5493,6 +4814,20 @@ interface ComponentCompilerMeta extends ComponentCompilerFeatures {
5493
4814
  * 3. 'none' - a basic HTML element
5494
4815
  */
5495
4816
  type Encapsulation = 'shadow' | 'scoped' | 'none';
4817
+ /**
4818
+ * Per-component slot patches for non-shadow DOM components.
4819
+ * These enable proper slot behavior when not using native Shadow DOM.
4820
+ */
4821
+ interface ComponentPatches {
4822
+ /** Apply all slot patches (equivalent to experimentalSlotFixes) */
4823
+ all?: boolean;
4824
+ /** Patch child node accessors (children, firstChild, lastChild, etc.) */
4825
+ children?: boolean;
4826
+ /** Patch cloneNode() to handle slotted content */
4827
+ clone?: boolean;
4828
+ /** Patch appendChild(), insertBefore(), etc. for slot relocation */
4829
+ insert?: boolean;
4830
+ }
5496
4831
  /**
5497
4832
  * Intermediate Representation (IR) of a static property on a Stencil component
5498
4833
  */
@@ -6562,6 +5897,7 @@ interface TransformCssToEsmOutput {
6562
5897
  interface PackageJsonData {
6563
5898
  name?: string;
6564
5899
  version?: string;
5900
+ type?: 'module' | 'commonjs';
6565
5901
  main?: string;
6566
5902
  exports?: {
6567
5903
  [key: string]: string | {
@@ -6835,7 +6171,7 @@ interface VNodeProdData {
6835
6171
  */
6836
6172
  interface CompilerWorkerContext {
6837
6173
  optimizeCss(inputOpts: OptimizeCssInput): Promise<OptimizeCssOutput>;
6838
- prepareModule(input: string, minifyOpts: any, transpile: boolean, inlineHelpers: boolean): Promise<{
6174
+ prepareModule(input: string, minifyOpts: any): Promise<{
6839
6175
  output: string;
6840
6176
  diagnostics: Diagnostic$1[];
6841
6177
  sourceMap?: SourceMap$1;
@@ -6915,4 +6251,4 @@ interface ValidateTypesResults {
6915
6251
  filePaths: string[];
6916
6252
  }
6917
6253
  //#endregion
6918
- export { ComponentCompilerVirtualProperty as $, isTsFile as $a, SitemapXmpResults as $i, CompilerEventBuildFinish as $n, catchError as $o, LazyRequire as $r, toCamelCase as $s, PluginTransformationDescriptor as $t, CompilerStyleDoc as A, JsonDocsListener as Aa, NODE_TYPES as Ac, OutputTargetHydrate as Ai, VNodeProdData as An, isOutputTargetDist as Ao, CopyResults as Ar, ScriptSpecialNumber as As, HydrateScriptElement as At, ComponentCompilerMeta as B, JsonDocsValue as Ba, VALUE_CONSTANT as Bc, PrerenderStartOptions as Bi, BuildOnEventRemove as Bn, isOutputTargetDocsJson as Bo, EmulateConfig as Br, fromEntries as Bs, ModuleMap as Bt, CompilerBuildStatBundle as C, VNode as Ca, DOCS_VSCODE as Cc, OutputTargetDistLazyLoader as Ci, TransformCssToEsmOutput as Cn, filterExcludedComponents as Co, CompilerSystemRenameResults as Cr, ScriptObjectLocalValue as Cs, HostElement as Ct, CompilerJsDoc as D, JsonDocsCustomState as Da, HTML_NS as Dc, OutputTargetDocsJson as Di, TypesMemberNameData as Dn, isEligiblePrimaryPackageOutputTarget as Do, Config as Dr, ScriptRegExpLocalValue as Ds, HydrateElement as Dt, CompilerCtx as E, JsonDocsComponent as Ea, HOST_FLAGS as Ec, OutputTargetDocsCustomElementsManifest as Ei, TypesImportData as En, getComponentsFromModules as Eo, CompilerWatcher as Er, ScriptRealm as Es, HydrateComponent as Et, ComponentCompilerData as F, JsonDocsSlot as Fa, SERIALIZED_PREFIX as Fc, Path as Fi, AutoprefixerOptions as Fn, isOutputTargetDistLazyLoader as Fo, DevServer as Fr, isRootPath as Fs, JsDoc as Ft, ComponentCompilerPropertyType as G, addDocBlock as Ga, RobotsTxtResults as Gi, CacheStorage as Gn, isOutputTargetWww as Go, HistoryApiFallback as Gr, isIterable as Gs, OptimizeJsResult as Gt, ComponentCompilerMethodComplexType as H, FsWriteResults as Ha, WWW as Hc, ResolveModuleIdResults as Hi, BuildOutput as Hn, isOutputTargetDocsVscode as Ho, FsStats as Hr, isComplexType as Hs, MsgToWorker as Ht, ComponentCompilerEvent as I, JsonDocsStyle as Ia, STATS as Ic, PlatformPath as Ii, BuildEmitEvents as In, isOutputTargetDistTypes as Io, DevServerConfig as Ir, isGlob as Is, LazyBundleRuntimeData as It, ComponentCompilerStaticEvent as J, getTextDocs as Ja, RollupInterface as Ji, CompileTarget as Jn, shouldExcludeComponent as Jo, HydrateDocumentOptions as Jr, isString as Js, PatchedSlotNode as Jt, ComponentCompilerReferencedType as K, createJsVarName as Ka, RollupConfig as Ki, CliInitOptions as Kn, isValidConfigOutputTarget as Ko, HmrStyleUpdate as Kr, isNumber as Ks, PackageJsonData as Kt, ComponentCompilerEventComplexType as L, JsonDocsTag as La, SVG_NS as Lc, PrerenderConfig as Li, BuildEvents as Ln, isOutputTargetDocs as Lo, DevServerEditor as Lr, dashToPascalCase as Ls, LazyBundlesRuntimeData as Lt, CompilerWorkerTask as M, JsonDocsMethodReturn as Ma, NonPrimitiveTypeValue as Mc, OutputTargetWww as Mi, Workbox as Mn, isOutputTargetDistCustomElements as Mo, Credentials as Mr, ScriptSymbolValue as Ms, HydrateStyleElement as Mt, ComponentCompilerChangeHandler as N, JsonDocsPart as Na, PrimitiveType as Nc, PageReloadStrategy as Ni, WorkerContextMethod as Nn, isOutputTargetDistGlobalStyles as No, CustomElementsExportBehavior as Nr, ScriptUndefinedValue as Ns, ImportData as Nt, CompilerJsDocTagInfo as O, JsonDocsDependencyGraph as Oa, LISTENER_FLAGS as Oc, OutputTargetDocsReadme as Oi, TypesModule as On, isOutputTargetCopy as Oo, ConfigBundle as Or, ScriptRegExpValue as Os, HydrateImgElement as Ot, ComponentCompilerCustomState as P, JsonDocsProp as Pa, PrimitiveTypeValue as Pc, ParsedPath as Pi, WorkerMsgHandler as Pn, isOutputTargetDistLazy as Po, CustomElementsExportBehaviorOptions as Pr, Serializeable as Ps, JSDocTagInfo as Pt, ComponentCompilerTypeReferences as Q, isJsxFile as Qa, SitemapXmpOpts as Qi, CompilerDependency as Qn, buildWarn as Qo, LOG_LEVELS as Qr, sortBy as Qs, PluginTransformResults as Qt, ComponentCompilerFeatures as R, JsonDocsTypeLibrary as Ra, TYPE_CONSTANT as Rc, PrerenderHydrateOptions as Ri, BuildLog as Rn, isOutputTargetDocsCustom as Ro, Diagnostic$1 as Rr, escapeWithPattern as Rs, Module as Rt, CompilerAssetDir as S, UserBuildConditionals as Sa, DOCS_README as Sc, OutputTargetDistLazy as Si, TransformCssToEsmInput as Sn, FilterComponentsResult as So, CompilerSystemRemoveFileResults as Sr, ScriptNumberValue as Ss, ExternalStyleCompiler as St, CompilerBuildStats as T, JsonDocs as Ta, GENERATED_DTS as Tc, OutputTargetDocsCustom as Ti, TypeInfo as Tn, getComponentsDtsTypesFilePath as To, CompilerSystemWriteFileResults as Tr, ScriptPrimitiveProtocolValue as Ts, HydrateAnchorElement as Tt, ComponentCompilerProperty as U, validateComponentTag as Ua, XLINK_NS as Uc, ResolveModuleOptions as Ui, BuildResultsComponentGraph as Un, isOutputTargetHydrate as Uo, FsWatchResults as Ur, isDef as Us, NewSpecPageOptions as Ut, ComponentCompilerMethod as V, StyleDoc as Va, WATCH_FLAGS as Vc, ResolveModuleIdOptions as Vi, BuildOnEvents as Vn, isOutputTargetDocsReadme as Vo, EmulateViewport as Vr, isBoolean as Vs, MsgFromWorker as Vt, ComponentCompilerPropertyComplexType as W, ParsePackageJsonResult as Wa, byteSize as Wc, RobotsTxtOpts as Wi, BundlingConfig as Wn, isOutputTargetStats as Wo, FsWatcherItem as Wr, isFunction as Ws, NodeMap as Wt, ComponentCompilerStaticProperty as X, isDtsFile as Xa, SerializeDocumentOptions as Xi, CompilerBuildResults as Xn, buildError as Xo, HydratedFlag as Xr, noop as Xs, Plugin as Xt, ComponentCompilerStaticMethod as Y, hasDependency as Ya, RollupOutputOptions as Yi, Compiler as Yn, TASK_CANCELED_MSG as Yo, HydrateFactoryOptions as Yr, mergeIntoWith as Ys, PlatformRuntime as Yt, ComponentCompilerTypeReference as Z, isJsFile as Za, ServiceWorkerConfig as Zi, CompilerBuildStart as Zn, buildJsonFileError as Zo, JestConfig as Zr, pluck as Zs, PluginCtx as Zt, CollectionCompilerVersion as _, ErrorHandler as _a, DIST_LAZY_LOADER as _c, OutputTargetCustom as _i, SourceTarget as _n, normalizeFsPath as _o, CompilerSystemCreateDirectoryOptions as _r, ScriptListLocalValue as _s, CssToEsmImportData as _t, BuildCtx as a, TestingConfig as aa, stringifyRuntimeData as ac, LoggerTimeSpan as ai, RenderNode as an, getInlineSourceMappingUrlLinker as ao, CompilerEventFileAdd as ar, splitLineBreaks as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, ResolutionHandler as ba, DOCS_CUSTOM_ELEMENTS_MANIFEST as bc, OutputTargetDistCustomElements as bi, StyleCompiler as bn, relative as bo, CompilerSystemRemoveDirectoryOptions as br, ScriptMappingLocalValue as bs, EntryModule as bt, BuildStyleUpdate as c, TransformerConfig as ca, COPY as cc, OptimizeCssInput as ci, RollupResult as cn, rollupToStencilSourceMap as co, CompilerEventFsChange as cr, loadTypeScriptDiagnostics as cs, ComponentNativeConstructor as ct, BundleModuleOutput as d, TranspileResults as da, DIST as dc, OptimizeJsOutput as di, RollupSourceMap as dn, result_d_exports as do, CompilerFileWatcherCallback as dr, LocalValue as ds, ComponentRuntimeMembers as dt, StencilConfig as ea, toDashCase as ec, LoadConfigInit as ei, PrerenderManager as en, isTsxFile as eo, CompilerEventBuildLog as er, hasError as es, ComponentConstructor as et, Cache as f, UnvalidatedConfig as fa, DIST_COLLECTION as fc, OutputTarget as fi, RootAppliedStyleMap as fn, RemoteValue as fo, CompilerFileWatcherEvent as fr, LocalValueParam as fs, ComponentRuntimeMeta as ft, CollectionCompilerMeta as g, WorkerOptions as ga, DIST_LAZY as gc, OutputTargetCopy as gi, SourceMap$1 as gn, normalize as go, CompilerSystem as gr, ScriptDateLocalValue as gs, CssImportData as gt, CollectionCompiler as h, WorkerMainController as ha, DIST_HYDRATE_SCRIPT as hc, OutputTargetBuild as hi, SerializedEvent as hn, join as ho, CompilerRequestResponse as hr, ScriptBooleanValue as hs, ComponentTestingConstructor as ht, BuildConditionals as i, Testing as ia, formatLazyBundleRuntimeMeta as ic, LoggerLineUpdater as ii, PropsType as in, isRemoteUrl as io, CompilerEventDirDelete as ir, normalizeDiagnostics as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsMethod as ja, NonPrimitiveType as jc, OutputTargetStats as ji, ValidateTypesResults as jn, isOutputTargetDistCollection as jo, CopyTask as jr, ScriptStringValue as js, HydrateStaticData as jt, CompilerModeStyles as k, JsonDocsEvent as ka, MEMBER_FLAGS as kc, OutputTargetDocsVscode as ki, UpdatedLazyBuildCtx as kn, isOutputTargetCustom as ko, ConfigExtras as kr, ScriptSetLocalValue as ks, HydrateResults as kt, BuildTask as l, TranspileOnlyResults as la, CUSTOM as lc, OptimizeCssOutput as li, RollupResultModule as ln, deserializeProperty as lo, CompilerEventName as lr, createOnWarnFn as ls, ComponentRuntimeHostListener as lt, CollectionBundleManifest as m, WatcherCloseResults as ma, DIST_GLOBAL_STYLES as mc, OutputTargetBaseNext as mi, SerializeImportData as mn, queryNonceMetaTagContent as mo, CompilerRequest as mr, ScriptBigIntValue as ms, ComponentRuntimeReflectingAttr as mt, AssetsMeta as n, StencilDocsConfig as na, unique as nc, LogLevel as ni, PrerenderUrlResults as nn, readOnlyArrayHasStringMember as no, CompilerEventBuildStart as nr, shouldIgnoreError as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, TestingRunOptions as oa, CMP_FLAGS as oc, MakeDirectoryOptions as oi, RollupAssetResult as on, getSourceMappingUrlForEndOfFile as oo, CompilerEventFileDelete as or, augmentDiagnosticWithNode as os, ComponentConstructorProperty as ot, ChildType as p, ValidatedConfig as pa, DIST_CUSTOM_ELEMENTS as pc, OutputTargetBase as pi, RuntimeRef as pn, escapeRegExpSpecialCharacters as po, CompilerFsStats as pr, ScriptArrayLocalValue as ps, ComponentRuntimeMetaCompact as pt, ComponentCompilerState as q, generatePreamble as qa, RollupInputOptions as qi, CompileScriptMinifyOptions as qn, relativeImport as qo, HotModuleReplacement as qr, isObject as qs, ParsedImport as qt, BuildComponent as r, SystemDetails as ra, formatComponentRuntimeMeta as rc, Logger as ri, PrintLine as rn, readPackageJson as ro, CompilerEventDirAdd as rr, escapeHtml as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, TransformOptions as sa, COLLECTION_MANIFEST_FILE_NAME as sc, NodeResolveConfig as si, RollupChunkResult as sn, getSourceMappingUrlLinker as so, CompilerEventFileUpdate as sr, loadTypeScriptDiagnostic as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, StencilDevServerConfig as ta, toTitleCase as tc, LoadConfigResults as ti, PrerenderUrlRequest as tn, parsePackageJson as to, CompilerEventBuildNoChange as tr, hasWarning as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, TranspileOptions as ua, DEFAULT_STYLE_MODE as uc, OptimizeJsInput as ui, RollupResults as un, serializeProperty as uo, CompilerFileWatcher as ur, loadRollupDiagnostics as us, ComponentRuntimeMember as ut, CollectionComponentEntryPath as v, FunctionalComponent as va, DIST_TYPES as vc, OutputTargetDist as vi, SpecPage as vn, normalizeFsPathQuery as vo, CompilerSystemCreateDirectoryResults as vr, ScriptLocalValue as vs, DocData as vt, CompilerBuildStatCollection as w, JsonDocMethodParameter as wa, EVENT_FLAGS as wc, OutputTargetDistTypes as wi, TranspileModuleResults as wn, getComponentsDtsSrcFilePath as wo, CompilerSystemRenamedPath as wr, ScriptPreloadScript as ws, HostRef as wt, CollectionManifest as x, TagTransformer as xa, DOCS_JSON as xc, OutputTargetDistGlobalStyles as xi, StyleMap as xn, resolve as xo, CompilerSystemRemoveDirectoryResults as xr, ScriptNullValue as xs, EventInitDict as xt, CollectionDependencyData as y, RafCallback as ya, DOCS_CUSTOM as yc, OutputTargetDistCollection as yi, StencilDocument as yn, normalizePath as yo, CompilerSystemRealpathResults as yr, ScriptMapLocalValue as ys, Encapsulation as yt, ComponentCompilerListener as z, JsonDocsUsage as za, VALID_CONFIG_OUTPUT_TARGETS as zc, PrerenderResults as zi, BuildNoChangeResults as zn, isOutputTargetDocsCustomElementsManifest as zo, EligiblePrimaryPackageOutputTarget as zr, flatOne as zs, ModuleFormat as zt };
6254
+ export { ComponentCompilerVirtualProperty as $, escapeRegExpSpecialCharacters as $a, TranspileOptions as $i, CompilerEventBuildFinish as $n, dashToPascalCase as $o, LoggerLineUpdater as $r, byteSize as $s, PluginTransformResults as $t, CompilerStyleDoc as A, StyleDoc as Aa, PrerenderConfig as Ai, UpdatedLazyBuildCtx as An, isOutputTargetStats as Ao, CopyResults as Ar, DIST_GLOBAL_STYLES as As, HydrateResults as At, ComponentCompilerMeta as B, isJsFile as Ba, RolldownInputOptions as Bi, BuildNoChangeResults as Bn, hasError as Bo, FsWatchResults as Br, EVENT_FLAGS as Bs, ModuleFormat as Bt, CompilerBuildStatBundle as C, JsonDocsProp as Ca, OutputTargetDocsVscode as Ci, TransformCssToEsmInput as Cn, isOutputTargetDocs as Co, CompilerSystemRenameResults as Cr, COLLECTION_MANIFEST_FILE_NAME as Cs, ExternalStyleCompiler as Ct, CompilerJsDoc as D, JsonDocsTypeLibrary as Da, PageReloadStrategy as Di, TypesImportData as Dn, isOutputTargetDocsReadme as Do, Config as Dr, DIST as Ds, HydrateComponent as Dt, CompilerCtx as E, JsonDocsTag as Ea, OutputTargetWww as Ei, TypeInfo as En, isOutputTargetDocsJson as Eo, CompilerWatcher as Er, DEFAULT_STYLE_MODE as Es, HydrateAnchorElement as Et, ComponentCompilerData as F, createJsVarName as Fa, ResolveModuleIdResults as Fi, WorkerMsgHandler as Fn, TASK_CANCELED_MSG as Fo, DevServer as Fr, DOCS_CUSTOM as Fs, JSDocTagInfo as Ft, ComponentCompilerPropertyType as G, readOnlyArrayHasStringMember as Ga, SitemapXmpOpts as Gi, CacheStorage as Gn, splitLineBreaks as Go, HydrateFactoryOptions as Gr, MEMBER_FLAGS as Gs, NodeMap as Gt, ComponentCompilerMethodComplexType as H, isTsFile as Ha, RolldownOutputOptions as Hi, BuildOnEvents as Hn, shouldIgnoreError as Ho, HmrStyleUpdate as Hr, HOST_FLAGS as Hs, MsgFromWorker as Ht, ComponentCompilerEvent as I, generatePreamble as Ia, ResolveModuleOptions as Ii, AutoprefixerOptions as In, buildError as Io, DevServerConfig as Ir, DOCS_CUSTOM_ELEMENTS_MANIFEST as Is, JsDoc as It, ComponentCompilerStaticEvent as J, getInlineSourceMappingUrlLinker as Ja, StencilDevServerConfig as Ji, CompileTarget as Jn, loadTypeScriptDiagnostics as Jo, LazyRequire as Jr, SVG_NS as Js, ParsedImport as Jt, ComponentCompilerReferencedType as K, readPackageJson as Ka, SitemapXmpResults as Ki, CliInitOptions as Kn, augmentDiagnosticWithNode as Ko, HydratedFlag as Kr, NODE_TYPES as Ks, OptimizeJsResult as Kt, ComponentCompilerEventComplexType as L, getTextDocs as La, RobotsTxtOpts as Li, BuildEmitEvents as Ln, buildJsonFileError as Lo, DevServerEditor as Lr, DOCS_JSON as Ls, LazyBundleRuntimeData as Lt, CompilerWorkerTask as M, validateComponentTag as Ma, PrerenderResults as Mi, ValidateTypesResults as Mn, isValidConfigOutputTarget as Mo, Credentials as Mr, DIST_LAZY as Ms, HydrateStaticData as Mt, ComponentCompilerChangeHandler as N, ParsePackageJsonResult as Na, PrerenderStartOptions as Ni, Workbox as Nn, relativeImport as No, CustomElementsExportBehavior as Nr, DIST_LAZY_LOADER as Ns, HydrateStyleElement as Nt, CompilerJsDocTagInfo as O, JsonDocsUsage as Oa, ParsedPath as Oi, TypesMemberNameData as On, isOutputTargetDocsVscode as Oo, ConfigBundle as Or, DIST_COLLECTION as Os, HydrateElement as Ot, ComponentCompilerCustomState as P, addDocBlock as Pa, ResolveModuleIdOptions as Pi, WorkerContextMethod as Pn, shouldExcludeComponent as Po, CustomElementsExportBehaviorOptions as Pr, DIST_TYPES as Ps, ImportData as Pt, ComponentCompilerTypeReferences as Q, result_d_exports as Qa, TranspileOnlyResults as Qi, CompilerDependency as Qn, isGlob as Qo, Logger as Qr, XLINK_NS as Qs, PluginCtx as Qt, ComponentCompilerFeatures as R, hasDependency as Ra, RobotsTxtResults as Ri, BuildEvents as Rn, buildWarn as Ro, Diagnostic$1 as Rr, DOCS_README as Rs, LazyBundlesRuntimeData as Rt, CompilerAssetDir as S, JsonDocsPart as Sa, OutputTargetDocsReadme as Si, StyleMap as Sn, isOutputTargetDistTypes as So, CompilerSystemRemoveFileResults as Sr, CMP_FLAGS as Ss, EventInitDict as St, CompilerBuildStats as T, JsonDocsStyle as Ta, OutputTargetStats as Ti, TranspileModuleResults as Tn, isOutputTargetDocsCustomElementsManifest as To, CompilerSystemWriteFileResults as Tr, CUSTOM as Ts, HostRef as Tt, ComponentCompilerProperty as U, isTsxFile as Ua, SerializeDocumentOptions as Ui, BuildOutput as Un, escapeHtml as Uo, HotModuleReplacement as Ur, HTML_NS as Us, MsgToWorker as Ut, ComponentCompilerMethod as V, isJsxFile as Va, RolldownInterface as Vi, BuildOnEventRemove as Vn, hasWarning as Vo, HistoryApiFallback as Vr, GENERATED_DTS as Vs, ModuleMap as Vt, ComponentCompilerPropertyComplexType as W, parsePackageJson as Wa, ServiceWorkerConfig as Wi, BuildResultsComponentGraph as Wn, normalizeDiagnostics as Wo, HydrateDocumentOptions as Wr, LISTENER_FLAGS as Ws, NewSpecPageOptions as Wt, ComponentCompilerStaticProperty as X, getSourceMappingUrlLinker as Xa, SystemDetails as Xi, CompilerBuildResults as Xn, loadRolldownDiagnostics as Xo, LoadConfigResults as Xr, WATCH_FLAGS as Xs, PlatformRuntime as Xt, ComponentCompilerStaticMethod as Y, getSourceMappingUrlForEndOfFile as Ya, StencilDocsConfig as Yi, Compiler as Yn, createOnWarnFn as Yo, LoadConfigInit as Yr, VALID_CONFIG_OUTPUT_TARGETS as Ys, PatchedSlotNode as Yt, ComponentCompilerTypeReference as Z, rolldownToStencilSourceMap as Za, TransformOptions as Zi, CompilerBuildStart as Zn, isRootPath as Zo, LogLevel as Zr, WWW as Zs, Plugin as Zt, CollectionCompilerVersion as _, JsonDocsDependencyGraph as _a, OutputTargetDistLazyLoader as _i, SourceMap$1 as _n, isOutputTargetDistCollection as _o, CompilerSystemCreateDirectoryOptions as _r, toTitleCase as _s, CssImportData as _t, BuildCtx as a, WorkerOptions as aa, OptimizeJsOutput as ai, PropsType as an, normalizePath as ao, CompilerEventFileAdd as ar, isDef as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsMethod as ba, OutputTargetDocsCustomElementsManifest as bi, StencilDocument as bn, isOutputTargetDistLazy as bo, CompilerSystemRemoveDirectoryOptions as br, formatLazyBundleRuntimeMeta as bs, Encapsulation as bt, BuildStyleUpdate as c, RafCallback as ca, OutputTargetBaseNext as ci, RolldownChunkResult as cn, FilterComponentsResult as co, CompilerEventFsChange as cr, isNumber as cs, ComponentNativeConstructor as ct, BundleModuleOutput as d, UserBuildConditionals as da, OutputTargetCustom as di, RolldownResults as dn, getComponentsDtsTypesFilePath as do, CompilerFileWatcherCallback as dr, mergeIntoWith as ds, ComponentRuntimeMember as dt, TranspileResults as ea, LoggerTimeSpan as ei, PluginTransformationDescriptor as en, queryNonceMetaTagContent as eo, CompilerEventBuildLog as er, escapeWithPattern as es, ComponentConstructor as et, Cache as f, VNode as fa, OutputTargetDist as fi, RolldownSourceMap as fn, getComponentsFromModules as fo, CompilerFileWatcherEvent as fr, noop as fs, ComponentRuntimeMembers as ft, CollectionCompilerMeta as g, JsonDocsCustomState as ga, OutputTargetDistLazy as gi, SerializedEvent as gn, isOutputTargetDist as go, CompilerSystem as gr, toDashCase as gs, ComponentTestingConstructor as gt, CollectionCompiler as h, JsonDocsComponent as ha, OutputTargetDistGlobalStyles as hi, SerializeImportData as hn, isOutputTargetCustom as ho, CompilerRequestResponse as hr, toCamelCase as hs, ComponentRuntimeReflectingAttr as ht, BuildConditionals as i, WorkerMainController as ia, OptimizeJsInput as ii, PrintLine as in, normalizeFsPathQuery as io, CompilerEventDirDelete as ir, isComplexType as is, ComponentConstructorListener as it, CompilerWorkerContext as j, FsWriteResults as ja, PrerenderHydrateOptions as ji, VNodeProdData as jn, isOutputTargetWww as jo, CopyTask as jr, DIST_HYDRATE_SCRIPT as js, HydrateScriptElement as jt, CompilerModeStyles as k, JsonDocsValue as ka, PlatformPath as ki, TypesModule as kn, isOutputTargetHydrate as ko, ConfigExtras as kr, DIST_CUSTOM_ELEMENTS as ks, HydrateImgElement as kt, BuildTask as l, ResolutionHandler as la, OutputTargetBuild as li, RolldownResult as ln, filterExcludedComponents as lo, CompilerEventName as lr, isObject as ls, ComponentPatches as lt, CollectionBundleManifest as m, JsonDocs as ma, OutputTargetDistCustomElements as mi, RuntimeRef as mn, isOutputTargetCopy as mo, CompilerRequest as mr, sortBy as ms, ComponentRuntimeMetaCompact as mt, AssetsMeta as n, ValidatedConfig as na, OptimizeCssInput as ni, PrerenderUrlRequest as nn, normalize as no, CompilerEventBuildStart as nr, fromEntries as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, ErrorHandler as oa, OutputTarget as oi, RenderNode as on, relative as oo, CompilerEventFileDelete as or, isFunction as os, ComponentConstructorProperty as ot, ChildType as p, JsonDocMethodParameter as pa, OutputTargetDistCollection as pi, RootAppliedStyleMap as pn, isEligiblePrimaryPackageOutputTarget as po, CompilerFsStats as pr, pluck as ps, ComponentRuntimeMeta as pt, ComponentCompilerState as q, isRemoteUrl as qa, StencilConfig as qi, CompileScriptMinifyOptions as qn, loadTypeScriptDiagnostic as qo, LOG_LEVELS as qr, STATS as qs, PackageJsonData as qt, BuildComponent as r, WatcherCloseResults as ra, OptimizeCssOutput as ri, PrerenderUrlResults as rn, normalizeFsPath as ro, CompilerEventDirAdd as rr, isBoolean as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, FunctionalComponent as sa, OutputTargetBase as si, RolldownAssetResult as sn, resolve as so, CompilerEventFileUpdate as sr, isIterable as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, UnvalidatedConfig as ta, NodeResolveConfig as ti, PrerenderManager as tn, join as to, CompilerEventBuildNoChange as tr, flatOne as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, TagTransformer as ua, OutputTargetCopy as ui, RolldownResultModule as un, getComponentsDtsSrcFilePath as uo, CompilerFileWatcher as ur, isString as us, ComponentRuntimeHostListener as ut, CollectionComponentEntryPath as v, JsonDocsEvent as va, OutputTargetDistTypes as vi, SourceTarget as vn, isOutputTargetDistCustomElements as vo, CompilerSystemCreateDirectoryResults as vr, unique as vs, CssToEsmImportData as vt, CompilerBuildStatCollection as w, JsonDocsSlot as wa, OutputTargetHydrate as wi, TransformCssToEsmOutput as wn, isOutputTargetDocsCustom as wo, CompilerSystemRenamedPath as wr, COPY as ws, HostElement as wt, CollectionManifest as x, JsonDocsMethodReturn as xa, OutputTargetDocsJson as xi, StyleCompiler as xn, isOutputTargetDistLazyLoader as xo, CompilerSystemRemoveDirectoryResults as xr, stringifyRuntimeData as xs, EntryModule as xt, CollectionDependencyData as y, JsonDocsListener as ya, OutputTargetDocsCustom as yi, SpecPage as yn, isOutputTargetDistGlobalStyles as yo, CompilerSystemRealpathResults as yr, formatComponentRuntimeMeta as ys, DocData as yt, ComponentCompilerListener as z, isDtsFile as za, RolldownConfig as zi, BuildLog as zn, catchError as zo, EligiblePrimaryPackageOutputTarget as zr, DOCS_VSCODE as zs, Module as zt };