@stencil/core 5.0.0-beta.14 → 5.0.0-beta.15

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.
@@ -2648,7 +2648,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2648
2648
  * Note that this is "approximate", in that HTML may often not be able
2649
2649
  * to be split at an exact line width. Additionally, new lines created
2650
2650
  * is where HTML naturally already has whitespace, such as before an
2651
- * attribute or spaces between words. Defaults to `100`.
2651
+ * attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
2652
2652
  */
2653
2653
  approximateLineWidth?: number;
2654
2654
  /**
@@ -2666,12 +2666,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2666
2666
  prettyHtml?: boolean;
2667
2667
  /**
2668
2668
  * Remove quotes from attribute values when possible.
2669
- * Defaults to `true`.
2669
+ * Defaults to `false` (`true` when prerendering).
2670
2670
  */
2671
2671
  removeAttributeQuotes?: boolean;
2672
2672
  /**
2673
2673
  * Remove the `=""` from standardized `boolean` attributes,
2674
- * such as `hidden` or `checked`. Defaults to `true`.
2674
+ * such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
2675
2675
  */
2676
2676
  removeBooleanAttributeQuotes?: boolean;
2677
2677
  /**
@@ -2680,7 +2680,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2680
2680
  */
2681
2681
  removeEmptyAttributes?: boolean;
2682
2682
  /**
2683
- * Remove HTML comments. Defaults to `true`.
2683
+ * Remove HTML comments. Defaults to `false` (`true` when prerendering).
2684
2684
  */
2685
2685
  removeHtmlComments?: boolean;
2686
2686
  /**
@@ -2779,7 +2779,7 @@ interface CompilerSystem {
2779
2779
  name: 'node' | 'in-memory';
2780
2780
  version: string;
2781
2781
  events?: BuildEvents;
2782
- details?: SystemDetails;
2782
+ details: SystemDetails;
2783
2783
  /**
2784
2784
  * Add a callback which will be ran when destroy() is called.
2785
2785
  */
@@ -2792,14 +2792,15 @@ interface CompilerSystem {
2792
2792
  * SYNC! Always returns a boolean, does not throw.
2793
2793
  */
2794
2794
  accessSync(p: string): boolean;
2795
- applyGlobalPatch?(fromDir: string): Promise<void>;
2796
2795
  applyPrerenderGlobalPatch?(opts: {
2797
2796
  devServerHostUrl: string;
2798
2797
  window: any;
2799
2798
  }): void;
2800
- cacheStorage?: CacheStorage;
2801
- checkVersion?: (logger: Logger, currentVersion: string) => Promise<() => void>;
2802
- copy?(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2799
+ /**
2800
+ * Check npm for a newer Stencil version. Resolves a function that logs the result.
2801
+ */
2802
+ checkVersion(logger: Logger, currentVersion: string): Promise<() => void>;
2803
+ copy(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2803
2804
  /**
2804
2805
  * Always returns a boolean if the files were copied or not. Does not throw.
2805
2806
  */
@@ -2824,7 +2825,7 @@ interface CompilerSystem {
2824
2825
  /**
2825
2826
  * Each platform has a different way to dynamically import modules.
2826
2827
  */
2827
- dynamicImport?(p: string): Promise<any>;
2828
+ dynamicImport(p: string): Promise<any>;
2828
2829
  /**
2829
2830
  * Creates the worker controller for the current system.
2830
2831
  *
@@ -2838,20 +2839,14 @@ interface CompilerSystem {
2838
2839
  * process.exit()
2839
2840
  */
2840
2841
  exit(exitCode: number): Promise<void>;
2841
- /**
2842
- * Optionally provide a fetch() function rather than using the built-in fetch().
2843
- * First arg is a url string or Request object (RequestInfo).
2844
- * Second arg is the RequestInit. Returns the Response object
2845
- */
2846
- fetch?(input: string | any, init?: any): Promise<any>;
2847
2842
  /**
2848
2843
  * Generates a sha1 digest encoded as HEX
2849
2844
  */
2850
- generateContentHash?(content: string | any, length?: number): Promise<string>;
2845
+ generateContentHash(content: string | any, length?: number): Promise<string>;
2851
2846
  /**
2852
2847
  * Generates a sha1 digest encoded as HEX from a file path
2853
2848
  */
2854
- generateFileHash?(filePath: string | any, length?: number): Promise<string>;
2849
+ generateFileHash(filePath: string | any, length?: number): Promise<string>;
2855
2850
  /**
2856
2851
  * Get the current directory.
2857
2852
  */
@@ -2860,7 +2855,6 @@ interface CompilerSystem {
2860
2855
  * The compiler's executing path.
2861
2856
  */
2862
2857
  getCompilerExecutingPath(): string;
2863
- getEnvironmentVar?(key: string): string;
2864
2858
  /**
2865
2859
  * Gets the absolute file path when for a dependency module.
2866
2860
  */
@@ -2899,11 +2893,7 @@ interface CompilerSystem {
2899
2893
  * Normalize file system path.
2900
2894
  */
2901
2895
  normalizePath(p: string): string;
2902
- onProcessInterrupt?(cb: () => void): void;
2903
- parseYarnLockFile?: (content: string) => {
2904
- type: 'success' | 'merge' | 'conflict';
2905
- object: any;
2906
- };
2896
+ onProcessInterrupt(cb: () => void): void;
2907
2897
  platformPath: PlatformPath;
2908
2898
  /**
2909
2899
  * All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
@@ -2939,6 +2929,9 @@ interface CompilerSystem {
2939
2929
  * Rename old path to new path. Does not throw.
2940
2930
  */
2941
2931
  rename(oldPath: string, newPath: string): Promise<CompilerSystemRenameResults>;
2932
+ /**
2933
+ * Assigned by the compiler. Used by plugins (e.g. `@stencil/sass`) to resolve `~` imports.
2934
+ */
2942
2935
  resolveModuleId?(opts: ResolveModuleIdOptions): Promise<ResolveModuleIdResults>;
2943
2936
  resolvePath(p: string): string;
2944
2937
  /**
@@ -3589,7 +3582,7 @@ interface OutputTargetCollection extends OutputTargetBaseNext {
3589
3582
  * When `true` this flag will transform aliased import paths defined in
3590
3583
  * a project's `tsconfig.json` to relative import paths in the compiled output.
3591
3584
  *
3592
- * Paths will be left in aliased format if `false` or `undefined`.
3585
+ * Paths will be left in aliased format if `false`. Defaults to `true`.
3593
3586
  *
3594
3587
  * @example
3595
3588
  * // tsconfig.json
@@ -3691,11 +3684,11 @@ interface OutputTargetGlobalStyle extends OutputTargetBaseNext {
3691
3684
  * Controls whether this global stylesheet is injected into component shadow DOMs
3692
3685
  * as a constructable stylesheet at runtime.
3693
3686
  *
3694
- * - `'none'` (default): Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3687
+ * - `'none'`: Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3695
3688
  * - `'client'`: Inject only in client builds, not SSR (reduces SSR output size)
3696
3689
  * - `'all'`: Inject in both client and SSR builds
3697
3690
  *
3698
- * @default 'none'
3691
+ * @default 'client' when the stylesheet comes from `globalStyle` (or an auto-detected `src/global.*`), 'none' when `input` is set
3699
3692
  */
3700
3693
  inject?: 'none' | 'client' | 'all';
3701
3694
  }
@@ -3894,7 +3887,7 @@ interface OutputTargetDocsAgentSkill extends OutputTargetBase {
3894
3887
  /**
3895
3888
  * The skill's name, used in the `SKILL.md` frontmatter.
3896
3889
  *
3897
- * Defaults to a kebab-cased form of {@link Config.namespace}.
3890
+ * Defaults to {@link Config.namespace}, lowercased, with anything other than letters and numbers replaced by `-`.
3898
3891
  */
3899
3892
  name?: string;
3900
3893
  /**
@@ -4022,8 +4015,10 @@ interface OutputTargetBase {
4022
4015
  * This improves dev build times by not generating production-only artifacts.
4023
4016
  *
4024
4017
  * Defaults vary by output target type:
4025
- * - `loader-bundle`: `false` (always builds)
4026
- * - `standalone`: `true` (skips in dev)
4018
+ * - `loader-bundle`: `true` (skips the npm distribution files; the browser bundle always builds)
4019
+ * - `standalone`: `true` if `loader-bundle` is also configured, otherwise `false`
4020
+ * - `types`, `collection`, `ssr-wasm`: `true` (skips in dev)
4021
+ * - `assets`, `global-style`: `false` (always runs)
4027
4022
  * - `ssr`: `true` (skips in dev, unless `devServer.ssr` is enabled)
4028
4023
  * - `docs-*`: `true` (skips in dev)
4029
4024
  * - `custom`: `true` (skips in dev)
@@ -4218,10 +4213,6 @@ interface Diagnostic {
4218
4213
  relFilePath?: string | undefined;
4219
4214
  type: string;
4220
4215
  }
4221
- interface CacheStorage {
4222
- get(key: string): Promise<any>;
4223
- set(key: string, value: any): Promise<void>;
4224
- }
4225
4216
  interface WorkerOptions {
4226
4217
  maxConcurrentWorkers?: number;
4227
4218
  maxConcurrentTasksPerWorker?: number;
@@ -4559,4 +4550,4 @@ interface CliInitOptions {
4559
4550
  sys: CompilerSystem;
4560
4551
  }
4561
4552
  //#endregion
4562
- export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CacheStorage, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, HistoryApiFallback, HmrGlobalStyleUpdate, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
4553
+ export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, HistoryApiFallback, HmrGlobalStyleUpdate, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, ModeConfig, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsAgentSkill, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
@@ -2666,7 +2666,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2666
2666
  * Note that this is "approximate", in that HTML may often not be able
2667
2667
  * to be split at an exact line width. Additionally, new lines created
2668
2668
  * is where HTML naturally already has whitespace, such as before an
2669
- * attribute or spaces between words. Defaults to `100`.
2669
+ * attribute or spaces between words. Defaults to no wrapping (`100` when prerendering).
2670
2670
  */
2671
2671
  approximateLineWidth?: number;
2672
2672
  /**
@@ -2684,12 +2684,12 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2684
2684
  prettyHtml?: boolean;
2685
2685
  /**
2686
2686
  * Remove quotes from attribute values when possible.
2687
- * Defaults to `true`.
2687
+ * Defaults to `false` (`true` when prerendering).
2688
2688
  */
2689
2689
  removeAttributeQuotes?: boolean;
2690
2690
  /**
2691
2691
  * Remove the `=""` from standardized `boolean` attributes,
2692
- * such as `hidden` or `checked`. Defaults to `true`.
2692
+ * such as `hidden` or `checked`. Defaults to `false` (`true` when prerendering).
2693
2693
  */
2694
2694
  removeBooleanAttributeQuotes?: boolean;
2695
2695
  /**
@@ -2698,7 +2698,7 @@ interface SerializeDocumentOptions extends SsrDocumentOptions {
2698
2698
  */
2699
2699
  removeEmptyAttributes?: boolean;
2700
2700
  /**
2701
- * Remove HTML comments. Defaults to `true`.
2701
+ * Remove HTML comments. Defaults to `false` (`true` when prerendering).
2702
2702
  */
2703
2703
  removeHtmlComments?: boolean;
2704
2704
  /**
@@ -2797,7 +2797,7 @@ interface CompilerSystem {
2797
2797
  name: 'node' | 'in-memory';
2798
2798
  version: string;
2799
2799
  events?: BuildEvents;
2800
- details?: SystemDetails;
2800
+ details: SystemDetails;
2801
2801
  /**
2802
2802
  * Add a callback which will be ran when destroy() is called.
2803
2803
  */
@@ -2810,14 +2810,15 @@ interface CompilerSystem {
2810
2810
  * SYNC! Always returns a boolean, does not throw.
2811
2811
  */
2812
2812
  accessSync(p: string): boolean;
2813
- applyGlobalPatch?(fromDir: string): Promise<void>;
2814
2813
  applyPrerenderGlobalPatch?(opts: {
2815
2814
  devServerHostUrl: string;
2816
2815
  window: any;
2817
2816
  }): void;
2818
- cacheStorage?: CacheStorage;
2819
- checkVersion?: (logger: Logger, currentVersion: string) => Promise<() => void>;
2820
- copy?(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2817
+ /**
2818
+ * Check npm for a newer Stencil version. Resolves a function that logs the result.
2819
+ */
2820
+ checkVersion(logger: Logger, currentVersion: string): Promise<() => void>;
2821
+ copy(copyTasks: Required<CopyTask>[], srcDir: string): Promise<CopyResults>;
2821
2822
  /**
2822
2823
  * Always returns a boolean if the files were copied or not. Does not throw.
2823
2824
  */
@@ -2842,7 +2843,7 @@ interface CompilerSystem {
2842
2843
  /**
2843
2844
  * Each platform has a different way to dynamically import modules.
2844
2845
  */
2845
- dynamicImport?(p: string): Promise<any>;
2846
+ dynamicImport(p: string): Promise<any>;
2846
2847
  /**
2847
2848
  * Creates the worker controller for the current system.
2848
2849
  *
@@ -2856,20 +2857,14 @@ interface CompilerSystem {
2856
2857
  * process.exit()
2857
2858
  */
2858
2859
  exit(exitCode: number): Promise<void>;
2859
- /**
2860
- * Optionally provide a fetch() function rather than using the built-in fetch().
2861
- * First arg is a url string or Request object (RequestInfo).
2862
- * Second arg is the RequestInit. Returns the Response object
2863
- */
2864
- fetch?(input: string | any, init?: any): Promise<any>;
2865
2860
  /**
2866
2861
  * Generates a sha1 digest encoded as HEX
2867
2862
  */
2868
- generateContentHash?(content: string | any, length?: number): Promise<string>;
2863
+ generateContentHash(content: string | any, length?: number): Promise<string>;
2869
2864
  /**
2870
2865
  * Generates a sha1 digest encoded as HEX from a file path
2871
2866
  */
2872
- generateFileHash?(filePath: string | any, length?: number): Promise<string>;
2867
+ generateFileHash(filePath: string | any, length?: number): Promise<string>;
2873
2868
  /**
2874
2869
  * Get the current directory.
2875
2870
  */
@@ -2878,7 +2873,6 @@ interface CompilerSystem {
2878
2873
  * The compiler's executing path.
2879
2874
  */
2880
2875
  getCompilerExecutingPath(): string;
2881
- getEnvironmentVar?(key: string): string;
2882
2876
  /**
2883
2877
  * Gets the absolute file path when for a dependency module.
2884
2878
  */
@@ -2917,11 +2911,7 @@ interface CompilerSystem {
2917
2911
  * Normalize file system path.
2918
2912
  */
2919
2913
  normalizePath(p: string): string;
2920
- onProcessInterrupt?(cb: () => void): void;
2921
- parseYarnLockFile?: (content: string) => {
2922
- type: 'success' | 'merge' | 'conflict';
2923
- object: any;
2924
- };
2914
+ onProcessInterrupt(cb: () => void): void;
2925
2915
  platformPath: PlatformPath;
2926
2916
  /**
2927
2917
  * All return paths are full normalized paths, not just the basenames. Always returns an array, does not throw.
@@ -2957,6 +2947,9 @@ interface CompilerSystem {
2957
2947
  * Rename old path to new path. Does not throw.
2958
2948
  */
2959
2949
  rename(oldPath: string, newPath: string): Promise<CompilerSystemRenameResults>;
2950
+ /**
2951
+ * Assigned by the compiler. Used by plugins (e.g. `@stencil/sass`) to resolve `~` imports.
2952
+ */
2960
2953
  resolveModuleId?(opts: ResolveModuleIdOptions): Promise<ResolveModuleIdResults>;
2961
2954
  resolvePath(p: string): string;
2962
2955
  /**
@@ -3607,7 +3600,7 @@ interface OutputTargetCollection extends OutputTargetBaseNext {
3607
3600
  * When `true` this flag will transform aliased import paths defined in
3608
3601
  * a project's `tsconfig.json` to relative import paths in the compiled output.
3609
3602
  *
3610
- * Paths will be left in aliased format if `false` or `undefined`.
3603
+ * Paths will be left in aliased format if `false`. Defaults to `true`.
3611
3604
  *
3612
3605
  * @example
3613
3606
  * // tsconfig.json
@@ -3709,11 +3702,11 @@ interface OutputTargetGlobalStyle extends OutputTargetBaseNext {
3709
3702
  * Controls whether this global stylesheet is injected into component shadow DOMs
3710
3703
  * as a constructable stylesheet at runtime.
3711
3704
  *
3712
- * - `'none'` (default): Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3705
+ * - `'none'`: Don't inject - stylesheet must be loaded externally (e.g., via `<link>`)
3713
3706
  * - `'client'`: Inject only in client builds, not SSR (reduces SSR output size)
3714
3707
  * - `'all'`: Inject in both client and SSR builds
3715
3708
  *
3716
- * @default 'none'
3709
+ * @default 'client' when the stylesheet comes from `globalStyle` (or an auto-detected `src/global.*`), 'none' when `input` is set
3717
3710
  */
3718
3711
  inject?: 'none' | 'client' | 'all';
3719
3712
  }
@@ -3912,7 +3905,7 @@ interface OutputTargetDocsAgentSkill extends OutputTargetBase {
3912
3905
  /**
3913
3906
  * The skill's name, used in the `SKILL.md` frontmatter.
3914
3907
  *
3915
- * Defaults to a kebab-cased form of {@link Config.namespace}.
3908
+ * Defaults to {@link Config.namespace}, lowercased, with anything other than letters and numbers replaced by `-`.
3916
3909
  */
3917
3910
  name?: string;
3918
3911
  /**
@@ -4040,8 +4033,10 @@ interface OutputTargetBase {
4040
4033
  * This improves dev build times by not generating production-only artifacts.
4041
4034
  *
4042
4035
  * Defaults vary by output target type:
4043
- * - `loader-bundle`: `false` (always builds)
4044
- * - `standalone`: `true` (skips in dev)
4036
+ * - `loader-bundle`: `true` (skips the npm distribution files; the browser bundle always builds)
4037
+ * - `standalone`: `true` if `loader-bundle` is also configured, otherwise `false`
4038
+ * - `types`, `collection`, `ssr-wasm`: `true` (skips in dev)
4039
+ * - `assets`, `global-style`: `false` (always runs)
4045
4040
  * - `ssr`: `true` (skips in dev, unless `devServer.ssr` is enabled)
4046
4041
  * - `docs-*`: `true` (skips in dev)
4047
4042
  * - `custom`: `true` (skips in dev)
@@ -4236,10 +4231,6 @@ interface Diagnostic$1 {
4236
4231
  relFilePath?: string | undefined;
4237
4232
  type: string;
4238
4233
  }
4239
- interface CacheStorage {
4240
- get(key: string): Promise<any>;
4241
- set(key: string, value: any): Promise<void>;
4242
- }
4243
4234
  interface WorkerOptions {
4244
4235
  maxConcurrentWorkers?: number;
4245
4236
  maxConcurrentTasksPerWorker?: number;
@@ -6213,4 +6204,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
6213
6204
  */
6214
6205
  type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
6215
6206
  //#endregion
6216
- export { CompilerSystemRemoveDirectoryOptions as $, GENERATED_DTS as $i, UserBuildConditionals as $n, isOutputTargetDocs as $r, OutputTargetDocsCustomElementsManifest as $t, CompilerBuildStart as A, loadTypeScriptDiagnostics as Ai, SsrFactoryOptions as An, isJsFile as Ar, LoadConfigInit as At, CompilerEventFileUpdate as B, COLLECTION_APP_DATA_FILE_NAME as Bi, ValidatedConfig as Bn, rolldownToStencilSourceMap as Br, OptimizeJsInput as Bt, BuildResultsComponentGraph as C, hasWarning as Ci, RobotsTxtResults as Cn, ParsePackageJsonResult as Cr, HotModuleReplacement as Ct, CompileTarget as D, splitLineBreaks as Di, SitemapXmpOpts as Dn, getTextDocs as Dr, LOG_LEVELS as Dt, CompileScriptMinifyOptions as E, normalizeDiagnostics as Ei, ServiceWorkerConfig as En, generatePreamble as Er, HydratedFlag as Et, CompilerEventBuildStart as F, formatLazyBundleRuntimeMeta as Fi, TransformOptions as Fn, readOnlyArrayHasStringMember as Fr, LoggerTimeSpan as Ft, CompilerFileWatcherEvent as G, DIST_LAZY as Gi, ComponentInterface as Gn, getComponentsDtsSrcFilePath as Gr, OutputTargetBaseNext as Gt, CompilerEventName as H, COPY as Hi, WatcherCloseResults as Hn, FilterComponentsResult as Hr, OutputTarget as Ht, CompilerEventDirAdd as I, stringifyRuntimeData as Ii, TranspileOnlyResults as In, readPackageJson as Ir, ModeConfig as It, CompilerRequestResponse as J, DOCS_CUSTOM_ELEMENTS_MANIFEST as Ji, MixedInCtor as Jn, isOutputTargetAssets as Jr, OutputTargetCopy as Jt, CompilerFsStats as K, DOCS_AGENT_SKILL as Ki, ErrorHandler as Kn, getComponentsDtsTypesFilePath as Kr, OutputTargetBuild as Kt, CompilerEventDirDelete as L, ASSETS as Li, TranspileOptions as Ln, getInlineSourceMappingUrlLinker as Lr, NodeResolveConfig as Lt, CompilerEventBuildFinish as M, isRolldownError as Mi, StencilDevServerConfig as Mn, isTsFile as Mr, LogLevel as Mt, CompilerEventBuildLog as N, loadRolldownDiagnostics as Ni, StencilDocsConfig as Nn, isTsxFile as Nr, Logger as Nt, Compiler as O, augmentDiagnosticWithNode as Oi, SitemapXmpResults as On, hasDependency as Or, LazyRequire as Ot, CompilerEventBuildNoChange as P, formatComponentRuntimeMeta as Pi, SystemDetails as Pn, parsePackageJson as Pr, LoggerLineUpdater as Pt, CompilerSystemRealpathResults as Q, EVENT_FLAGS as Qi, TagTransformer as Qn, isOutputTargetDistLazy as Qr, OutputTargetDocsCustom as Qt, CompilerEventFileAdd as R, CMP_FLAGS as Ri, TranspileResults as Rn, getSourceMappingUrlForEndOfFile as Rr, OptimizeCssInput as Rt, BuildOverrides as S, hasError as Si, RobotsTxtOpts as Sn, validateComponentTag as Sr, HmrStyleUpdate as St, CliInitOptions as T, escapeHtml as Ti, SerializeDocumentOptions as Tn, createJsVarName as Tr, HydrateFactoryOptions as Tt, CompilerFileWatcher as U, CUSTOM as Ui, WorkerMainController as Un, filterActiveTargets as Ur, OutputTargetAssets as Ut, CompilerEventFsChange as V, COLLECTION_MANIFEST_FILE_NAME as Vi, ValidatedOutputTargetWww as Vn, result_d_exports as Vr, OptimizeJsOutput as Vt, CompilerFileWatcherCallback as W, DEFAULT_STYLE_MODE as Wi, WorkerOptions as Wn, filterExcludedComponents as Wr, OutputTargetBase as Wt, CompilerSystemCreateDirectoryOptions as X, DOCS_README as Xi, ReactiveControllerHostInterface as Xn, isOutputTargetCopy as Xr, OutputTargetDistLazy as Xt, CompilerSystem as Y, DOCS_JSON as Yi, RafCallback as Yn, isOutputTargetCollection as Yr, OutputTargetCustom as Yt, CompilerSystemCreateDirectoryResults as Z, DOCS_VSCODE as Zi, ResolutionHandler as Zn, isOutputTargetCustom as Zr, OutputTargetDocsAgentSkill as Zt, BuildLog as _, XLINK_NS as _a, TASK_CANCELED_MSG as _i, PrerenderResults as _n, JsonDocsValue as _r, Diagnostic$1 as _t, ComponentGlobalStyle as a, MEMBER_FLAGS as aa, isOutputTargetDocsVscode as ai, OutputTargetSsr as an, JsonDocsDependencyGraph as ar, CompilerWatcher as at, BuildOnEvents as b, buildWarn as bi, ResolveModuleIdResults as bn, ModeValidationError as br, HistoryApiFallback as bt, PackageJsonData as c, SSR_WASM as ca, isOutputTargetSsr as ci, OutputTargetStats as cn, JsonDocsMethod as cr, ConfigCompat as ct, RuntimeRef as d, STYLE_EXT as da, isOutputTargetStats as di, PageReloadStrategy as dn, JsonDocsProp as dr, Credentials as dt, GLOBAL_STYLE as ea, isOutputTargetDocsAgentSkill as ei, OutputTargetDocsJson as en, VNode as er, CompilerSystemRemoveDirectoryResults as et, SsrResults as f, SVG_NS as fa, isOutputTargetTypes as fi, ParsedPath as fn, JsonDocsSlot as fr, CustomElementsExportBehavior as ft, BuildEvents as g, WWW as ga, shouldExcludeComponent as gi, PrerenderOptions as gn, JsonDocsUsage as gr, DevServerEditor as gt, BuildEmitEvents as h, WATCH_FLAGS as ha, relativeImport as hi, PrerenderHydrateOptions as hn, JsonDocsTypeLibrary as hr, DevServerConfig as ht, ComponentCompilerTypeReferences as i, LOADER_BUNDLE as ia, isOutputTargetDocsReadme as ii, OutputTargetLoaderBundle as in, JsonDocsCustomState as ir, CompilerSystemWriteFileResults as it, CompilerDependency as j, createOnWarnFn as ji, StencilConfig as jn, isJsxFile as jr, LoadConfigResults as jt, CompilerBuildResults as k, loadTypeScriptDiagnostic as ki, SsrDocumentOptions as kn, isDtsFile as kr, LightDomPatches as kt, PrintLine as l, STANDALONE as la, isOutputTargetSsrWasm as li, OutputTargetTypes as ln, JsonDocsMethodReturn as lr, CopyResults as lt, AutoprefixerOptions as m, VALID_CONFIG_OUTPUT_TARGETS as ma, isValidConfigOutputTarget as mi, PrerenderConfig as mn, JsonDocsTag as mr, DevServer as mt, CompilerWorkerContext as n, HTML_NS as na, isOutputTargetDocsCustomElementsManifest as ni, OutputTargetDocsVscode as nn, JsonDocs as nr, CompilerSystemRenameResults as nt, HostElement as o, NODE_TYPES as oa, isOutputTargetGlobalStyle as oi, OutputTargetSsrWasm as on, JsonDocsEvent as or, Config as ot, WorkerMsgHandler as p, TYPES as pa, isOutputTargetWww as pi, PlatformPath as pn, JsonDocsStyle as pr, CustomElementsExportBehaviorOptions as pt, CompilerRequest as q, DOCS_CUSTOM as qi, FunctionalComponent as qn, getComponentsFromModules as qr, OutputTargetCollection as qt, ComponentCompilerMeta as r, LISTENER_FLAGS as ra, isOutputTargetDocsJson as ri, OutputTargetGlobalStyle as rn, JsonDocsComponent as rr, CompilerSystemRenamedPath as rt, LazyBundlesRuntimeData as s, SSR as sa, isOutputTargetLoaderBundle as si, OutputTargetStandalone as sn, JsonDocsListener as sr, ConfigBundle as st, ChildType as t, HOST_FLAGS as ta, isOutputTargetDocsCustom as ti, OutputTargetDocsReadme as tn, JsonDocMethodParameter as tr, CompilerSystemRemoveFileResults as tt, PropsType as u, STATS as ua, isOutputTargetStandalone as ui, OutputTargetWww as un, JsonDocsPart as ur, CopyTask as ut, BuildNoChangeResults as v, buildError as vi, PrerenderStartOptions as vn, StyleDoc as vr, DocsReadmeCustomColumn as vt, CacheStorage as w, shouldIgnoreError as wi, RolldownConfig as wn, addDocBlock as wr, HydrateDocumentOptions as wt, BuildOutput as x, catchError as xi, ResolveModuleOptions as xn, validateComponentModes as xr, HmrGlobalStyleUpdate as xt, BuildOnEventRemove as y, buildJsonFileError as yi, ResolveModuleIdOptions as yn, FsWriteResults as yr, FsWatchResults as yt, CompilerEventFileDelete as z, COLLECTION as zi, UnvalidatedConfig as zn, getSourceMappingUrlLinker as zr, OptimizeCssOutput as zt };
6207
+ export { CompilerSystemRemoveDirectoryResults as $, GLOBAL_STYLE as $i, VNode as $n, isOutputTargetDocsAgentSkill as $r, OutputTargetDocsJson as $t, CompilerDependency as A, createOnWarnFn as Ai, StencilConfig as An, isJsxFile as Ar, LoadConfigResults as At, CompilerEventFsChange as B, COLLECTION_MANIFEST_FILE_NAME as Bi, ValidatedOutputTargetWww as Bn, result_d_exports as Br, OptimizeJsOutput as Bt, BuildResultsComponentGraph as C, shouldIgnoreError as Ci, RolldownConfig as Cn, addDocBlock as Cr, HydrateDocumentOptions as Ct, Compiler as D, augmentDiagnosticWithNode as Di, SitemapXmpResults as Dn, hasDependency as Dr, LazyRequire as Dt, CompileTarget as E, splitLineBreaks as Ei, SitemapXmpOpts as En, getTextDocs as Er, LOG_LEVELS as Et, CompilerEventDirAdd as F, stringifyRuntimeData as Fi, TranspileOnlyResults as Fn, readPackageJson as Fr, ModeConfig as Ft, CompilerFsStats as G, DOCS_AGENT_SKILL as Gi, ErrorHandler as Gn, getComponentsDtsTypesFilePath as Gr, OutputTargetBuild as Gt, CompilerFileWatcher as H, CUSTOM as Hi, WorkerMainController as Hn, filterActiveTargets as Hr, OutputTargetAssets as Ht, CompilerEventDirDelete as I, ASSETS as Ii, TranspileOptions as In, getInlineSourceMappingUrlLinker as Ir, NodeResolveConfig as It, CompilerSystem as J, DOCS_JSON as Ji, RafCallback as Jn, isOutputTargetCollection as Jr, OutputTargetCustom as Jt, CompilerRequest as K, DOCS_CUSTOM as Ki, FunctionalComponent as Kn, getComponentsFromModules as Kr, OutputTargetCollection as Kt, CompilerEventFileAdd as L, CMP_FLAGS as Li, TranspileResults as Ln, getSourceMappingUrlForEndOfFile as Lr, OptimizeCssInput as Lt, CompilerEventBuildLog as M, loadRolldownDiagnostics as Mi, StencilDocsConfig as Mn, isTsxFile as Mr, Logger as Mt, CompilerEventBuildNoChange as N, formatComponentRuntimeMeta as Ni, SystemDetails as Nn, parsePackageJson as Nr, LoggerLineUpdater as Nt, CompilerBuildResults as O, loadTypeScriptDiagnostic as Oi, SsrDocumentOptions as On, isDtsFile as Or, LightDomPatches as Ot, CompilerEventBuildStart as P, formatLazyBundleRuntimeMeta as Pi, TransformOptions as Pn, readOnlyArrayHasStringMember as Pr, LoggerTimeSpan as Pt, CompilerSystemRemoveDirectoryOptions as Q, GENERATED_DTS as Qi, UserBuildConditionals as Qn, isOutputTargetDocs as Qr, OutputTargetDocsCustomElementsManifest as Qt, CompilerEventFileDelete as R, COLLECTION as Ri, UnvalidatedConfig as Rn, getSourceMappingUrlLinker as Rr, OptimizeCssOutput as Rt, BuildOverrides as S, hasWarning as Si, RobotsTxtResults as Sn, ParsePackageJsonResult as Sr, HotModuleReplacement as St, CompileScriptMinifyOptions as T, normalizeDiagnostics as Ti, ServiceWorkerConfig as Tn, generatePreamble as Tr, HydratedFlag as Tt, CompilerFileWatcherCallback as U, DEFAULT_STYLE_MODE as Ui, WorkerOptions as Un, filterExcludedComponents as Ur, OutputTargetBase as Ut, CompilerEventName as V, COPY as Vi, WatcherCloseResults as Vn, FilterComponentsResult as Vr, OutputTarget as Vt, CompilerFileWatcherEvent as W, DIST_LAZY as Wi, ComponentInterface as Wn, getComponentsDtsSrcFilePath as Wr, OutputTargetBaseNext as Wt, CompilerSystemCreateDirectoryResults as X, DOCS_VSCODE as Xi, ResolutionHandler as Xn, isOutputTargetCustom as Xr, OutputTargetDocsAgentSkill as Xt, CompilerSystemCreateDirectoryOptions as Y, DOCS_README as Yi, ReactiveControllerHostInterface as Yn, isOutputTargetCopy as Yr, OutputTargetDistLazy as Yt, CompilerSystemRealpathResults as Z, EVENT_FLAGS as Zi, TagTransformer as Zn, isOutputTargetDistLazy as Zr, OutputTargetDocsCustom as Zt, BuildLog as _, buildError as _i, PrerenderStartOptions as _n, StyleDoc as _r, DocsReadmeCustomColumn as _t, ComponentGlobalStyle as a, NODE_TYPES as aa, isOutputTargetGlobalStyle as ai, OutputTargetSsrWasm as an, JsonDocsEvent as ar, Config as at, BuildOnEvents as b, catchError as bi, ResolveModuleOptions as bn, validateComponentModes as br, HmrGlobalStyleUpdate as bt, PackageJsonData as c, STANDALONE as ca, isOutputTargetSsrWasm as ci, OutputTargetTypes as cn, JsonDocsMethodReturn as cr, CopyResults as ct, RuntimeRef as d, SVG_NS as da, isOutputTargetTypes as di, ParsedPath as dn, JsonDocsSlot as dr, CustomElementsExportBehavior as dt, HOST_FLAGS as ea, isOutputTargetDocsCustom as ei, OutputTargetDocsReadme as en, JsonDocMethodParameter as er, CompilerSystemRemoveFileResults as et, SsrResults as f, TYPES as fa, isOutputTargetWww as fi, PlatformPath as fn, JsonDocsStyle as fr, CustomElementsExportBehaviorOptions as ft, BuildEvents as g, XLINK_NS as ga, TASK_CANCELED_MSG as gi, PrerenderResults as gn, JsonDocsValue as gr, Diagnostic$1 as gt, BuildEmitEvents as h, WWW as ha, shouldExcludeComponent as hi, PrerenderOptions as hn, JsonDocsUsage as hr, DevServerEditor as ht, ComponentCompilerTypeReferences as i, MEMBER_FLAGS as ia, isOutputTargetDocsVscode as ii, OutputTargetSsr as in, JsonDocsDependencyGraph as ir, CompilerWatcher as it, CompilerEventBuildFinish as j, isRolldownError as ji, StencilDevServerConfig as jn, isTsFile as jr, LogLevel as jt, CompilerBuildStart as k, loadTypeScriptDiagnostics as ki, SsrFactoryOptions as kn, isJsFile as kr, LoadConfigInit as kt, PrintLine as l, STATS as la, isOutputTargetStandalone as li, OutputTargetWww as ln, JsonDocsPart as lr, CopyTask as lt, AutoprefixerOptions as m, WATCH_FLAGS as ma, relativeImport as mi, PrerenderHydrateOptions as mn, JsonDocsTypeLibrary as mr, DevServerConfig as mt, CompilerWorkerContext as n, LISTENER_FLAGS as na, isOutputTargetDocsJson as ni, OutputTargetGlobalStyle as nn, JsonDocsComponent as nr, CompilerSystemRenamedPath as nt, HostElement as o, SSR as oa, isOutputTargetLoaderBundle as oi, OutputTargetStandalone as on, JsonDocsListener as or, ConfigBundle as ot, WorkerMsgHandler as p, VALID_CONFIG_OUTPUT_TARGETS as pa, isValidConfigOutputTarget as pi, PrerenderConfig as pn, JsonDocsTag as pr, DevServer as pt, CompilerRequestResponse as q, DOCS_CUSTOM_ELEMENTS_MANIFEST as qi, MixedInCtor as qn, isOutputTargetAssets as qr, OutputTargetCopy as qt, ComponentCompilerMeta as r, LOADER_BUNDLE as ra, isOutputTargetDocsReadme as ri, OutputTargetLoaderBundle as rn, JsonDocsCustomState as rr, CompilerSystemWriteFileResults as rt, LazyBundlesRuntimeData as s, SSR_WASM as sa, isOutputTargetSsr as si, OutputTargetStats as sn, JsonDocsMethod as sr, ConfigCompat as st, ChildType as t, HTML_NS as ta, isOutputTargetDocsCustomElementsManifest as ti, OutputTargetDocsVscode as tn, JsonDocs as tr, CompilerSystemRenameResults as tt, PropsType as u, STYLE_EXT as ua, isOutputTargetStats as ui, PageReloadStrategy as un, JsonDocsProp as ur, Credentials as ut, BuildNoChangeResults as v, buildJsonFileError as vi, ResolveModuleIdOptions as vn, FsWriteResults as vr, FsWatchResults as vt, CliInitOptions as w, escapeHtml as wi, SerializeDocumentOptions as wn, createJsVarName as wr, HydrateFactoryOptions as wt, BuildOutput as x, hasError as xi, RobotsTxtOpts as xn, validateComponentTag as xr, HmrStyleUpdate as xt, BuildOnEventRemove as y, buildWarn as yi, ResolveModuleIdResults as yn, ModeValidationError as yr, HistoryApiFallback as yt, CompilerEventFileUpdate as z, COLLECTION_APP_DATA_FILE_NAME as zi, ValidatedConfig as zn, rolldownToStencilSourceMap as zr, OptimizeJsInput as zt };
@@ -1,4 +1,4 @@
1
- import { $n as UserBuildConditionals, Kn as ErrorHandler, Qn as TagTransformer, Yn as RafCallback, Zn as ResolutionHandler, d as RuntimeRef, er as VNode, o as HostElement, qn as FunctionalComponent, t as ChildType, u as PropsType } from "./index-BilaSOF5.mjs";
1
+ import { $n as VNode, Gn as ErrorHandler, Jn as RafCallback, Kn as FunctionalComponent, Qn as UserBuildConditionals, Xn as ResolutionHandler, Zn as TagTransformer, d as RuntimeRef, o as HostElement, t as ChildType, u as PropsType } from "./index-BxnFTzyD.mjs";
2
2
  //#region src/client/client-build.d.ts
3
3
  declare const Build: UserBuildConditionals;
4
4
  //#endregion
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-CAQvc3hT.mjs";
1
+ import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-BUal4Vkx.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  //#region src/client/client-decorators.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { n as jsxDEV, r as jsxs, t as jsx } from "./client-CAQvc3hT.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-BUal4Vkx.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,5 +1,5 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import "./client-CAQvc3hT.mjs";
2
+ import "./client-BUal4Vkx.mjs";
3
3
  import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
4
4
  import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
5
5
  import fs from "node:fs";
@@ -1429,7 +1429,6 @@ function createNodeSys(c = {}) {
1429
1429
  opts.window.Request = global.Request;
1430
1430
  opts.window.Response = global.Response;
1431
1431
  },
1432
- fetch: global.fetch,
1433
1432
  checkVersion,
1434
1433
  copyFile(src, dst) {
1435
1434
  return new Promise((resolve) => {
@@ -1507,9 +1506,6 @@ function createNodeSys(c = {}) {
1507
1506
  getCompilerExecutingPath() {
1508
1507
  return compilerExecutingPath;
1509
1508
  },
1510
- getEnvironmentVar(key) {
1511
- return process.env[key];
1512
- },
1513
1509
  getLocalModulePath() {
1514
1510
  return null;
1515
1511
  },
@@ -7,11 +7,80 @@ const BUILD = {
7
7
  lazyLoad: true
8
8
  };
9
9
  //#endregion
10
+ //#region src/runtime/runtime-constants.ts
11
+ /**
12
+ * Bit flags for recording various properties of VDom nodes
13
+ */
14
+ const VNODE_FLAGS = {
15
+ /**
16
+ * Whether or not a vdom node is a slot reference
17
+ */
18
+ isSlotReference: 1,
19
+ /**
20
+ * Whether or not a slot element has fallback content
21
+ */
22
+ isSlotFallback: 2,
23
+ /**
24
+ * Whether or not an element is a host element
25
+ */
26
+ isHost: 4
27
+ };
28
+ const PROXY_FLAGS = {
29
+ isElementConstructor: 1,
30
+ proxyState: 2
31
+ };
32
+ const PLATFORM_FLAGS = {
33
+ /**
34
+ * designates a node in the DOM as being actively moved by the runtime
35
+ */
36
+ isTmpDisconnected: 1,
37
+ appLoaded: 2,
38
+ queueSync: 4,
39
+ queueMask: 6
40
+ };
41
+ /**
42
+ * A (subset) of node types which are relevant for the Stencil runtime. These
43
+ * values are based on the values which can possibly be returned by the
44
+ * `.nodeType` property of a DOM node. See here for details:
45
+ *
46
+ * {@link https://dom.spec.whatwg.org/#ref-for-dom-node-nodetype%E2%91%A0}
47
+ */
48
+ const NODE_TYPE = {
49
+ ElementNode: 1,
50
+ TextNode: 3,
51
+ CommentNode: 8,
52
+ DocumentNode: 9,
53
+ DocumentTypeNode: 10,
54
+ DocumentFragment: 11
55
+ };
56
+ const HYDRATE_ID = "s-id";
57
+ const HYDRATED_STYLE_ID = "sty-id";
58
+ const HYDRATE_CHILD_ID = "c-id";
59
+ const HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
60
+ /**
61
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
62
+ *
63
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
64
+ * support as of Stencil v4.
65
+ */
66
+ const SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
67
+ const XLINK_NS = "http://www.w3.org/1999/xlink";
68
+ /**
69
+ * Minimum delay, in milliseconds, before retrying a failed lazy component load.
70
+ */
71
+ const LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
72
+ const FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
73
+ "formAssociatedCallback",
74
+ "formResetCallback",
75
+ "formDisabledCallback",
76
+ "formStateRestoreCallback"
77
+ ];
78
+ //#endregion
10
79
  //#region src/client/client-build.ts
11
80
  const Build = {
12
- isDev: BUILD.isDev,
13
81
  isBrowser: true,
14
82
  isServer: false,
83
+ isDev: BUILD.isDev,
15
84
  isTesting: BUILD.isTesting
16
85
  };
17
86
  //#endregion
@@ -498,75 +567,6 @@ const modeResolver = [];
498
567
  const setScopedSSR = (_opts) => {};
499
568
  const needsScopedSSR = () => false;
500
569
  //#endregion
501
- //#region src/runtime/runtime-constants.ts
502
- /**
503
- * Bit flags for recording various properties of VDom nodes
504
- */
505
- const VNODE_FLAGS = {
506
- /**
507
- * Whether or not a vdom node is a slot reference
508
- */
509
- isSlotReference: 1,
510
- /**
511
- * Whether or not a slot element has fallback content
512
- */
513
- isSlotFallback: 2,
514
- /**
515
- * Whether or not an element is a host element
516
- */
517
- isHost: 4
518
- };
519
- const PROXY_FLAGS = {
520
- isElementConstructor: 1,
521
- proxyState: 2
522
- };
523
- const PLATFORM_FLAGS = {
524
- /**
525
- * designates a node in the DOM as being actively moved by the runtime
526
- */
527
- isTmpDisconnected: 1,
528
- appLoaded: 2,
529
- queueSync: 4,
530
- queueMask: 6
531
- };
532
- /**
533
- * A (subset) of node types which are relevant for the Stencil runtime. These
534
- * values are based on the values which can possibly be returned by the
535
- * `.nodeType` property of a DOM node. See here for details:
536
- *
537
- * {@link https://dom.spec.whatwg.org/#ref-for-dom-node-nodetype%E2%91%A0}
538
- */
539
- const NODE_TYPE = {
540
- ElementNode: 1,
541
- TextNode: 3,
542
- CommentNode: 8,
543
- DocumentNode: 9,
544
- DocumentTypeNode: 10,
545
- DocumentFragment: 11
546
- };
547
- const HYDRATE_ID = "s-id";
548
- const HYDRATED_STYLE_ID = "sty-id";
549
- const HYDRATE_CHILD_ID = "c-id";
550
- const HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
551
- /**
552
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
553
- *
554
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
555
- * support as of Stencil v4.
556
- */
557
- const SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
558
- const XLINK_NS = "http://www.w3.org/1999/xlink";
559
- /**
560
- * Minimum delay, in milliseconds, before retrying a failed lazy component load.
561
- */
562
- const LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
563
- const FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
564
- "formAssociatedCallback",
565
- "formResetCallback",
566
- "formDisabledCallback",
567
- "formStateRestoreCallback"
568
- ];
569
- //#endregion
570
570
  //#region src/client/client-window.ts
571
571
  const win = typeof window !== "undefined" ? window : {};
572
572
  const H = win.HTMLElement || class {};
@@ -3237,9 +3237,7 @@ const h = (nodeName, vnodeData, ...children) => {
3237
3237
  if (classData && !(BUILD.vdomSignals && isSignalLike(classData))) vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
3238
3238
  }
3239
3239
  }
3240
- if (BUILD.isDev && vNodeChildren.some(isHost)) consoleDevError(`The <Host> must be the single root component. Make sure:
3241
- - You are NOT using hostData() and <Host> in the same component.
3242
- - <Host> is used once, and it's the single root component of the render() function.`);
3240
+ if (BUILD.isDev && vNodeChildren.some(isHost)) consoleDevError(`The <Host> must be used once, and be the single root component of the render() function.`);
3243
3241
  if (BUILD.vdomFunctional && typeof nodeName === "function") return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
3244
3242
  const vnode = newVNode(nodeName, null);
3245
3243
  vnode.$attrs$ = vnodeData;