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

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.
@@ -1844,7 +1844,7 @@ const validateComponentTag = (tag) => {
1844
1844
  };
1845
1845
  //#endregion
1846
1846
  //#region src/version.ts
1847
- const version = "5.0.0-beta.15";
1847
+ const version = "5.0.0-beta.17";
1848
1848
  //#endregion
1849
1849
  //#region src/compiler/events.ts
1850
1850
  const buildEvents = () => {
@@ -3818,7 +3818,7 @@ const validateConfig = (userConfig = {}, bootstrapConfig) => {
3818
3818
  ...config,
3819
3819
  devMode,
3820
3820
  compat: config.compat || {},
3821
- generateExportMaps: isBoolean$1(config.generateExportMaps) ? config.generateExportMaps : !isString$1(config.configPath),
3821
+ generateExportMaps: config.generateExportMaps === true,
3822
3822
  enableCssOnlyComponents: config.enableCssOnlyComponents ?? true,
3823
3823
  hydratedFlag: validateHydrated(config),
3824
3824
  logLevel,
@@ -1,6 +1,6 @@
1
- import { $ as CompilerSystemRemoveDirectoryResults, $t as OutputTargetDocsJson, A as CompilerDependency, An as StencilConfig, At as LoadConfigResults, B as CompilerEventFsChange, Bn as ValidatedOutputTargetWww, Bt as OptimizeJsOutput, C as BuildResultsComponentGraph, Cn as RolldownConfig, Ct as HydrateDocumentOptions, D as Compiler, Dn as SitemapXmpResults, Dt as LazyRequire, E as CompileTarget, En as SitemapXmpOpts, Et as LOG_LEVELS, F as CompilerEventDirAdd, Fn as TranspileOnlyResults, Ft as ModeConfig, G as CompilerFsStats, Gt as OutputTargetBuild, H as CompilerFileWatcher, Hn as WorkerMainController, Ht as OutputTargetAssets, I as CompilerEventDirDelete, In as TranspileOptions, It as NodeResolveConfig, J as CompilerSystem, Jt as OutputTargetCustom, K as CompilerRequest, Kt as OutputTargetCollection, L as CompilerEventFileAdd, Ln as TranspileResults, Lt as OptimizeCssInput, M as CompilerEventBuildLog, Mn as StencilDocsConfig, Mt as Logger, N as CompilerEventBuildNoChange, Nn as SystemDetails, Nt as LoggerLineUpdater, O as CompilerBuildResults, On as SsrDocumentOptions, Ot as LightDomPatches, P as CompilerEventBuildStart, Pn as TransformOptions, Pt as LoggerTimeSpan, Q as CompilerSystemRemoveDirectoryOptions, Qn as UserBuildConditionals, Qt as OutputTargetDocsCustomElementsManifest, R as CompilerEventFileDelete, Rn as UnvalidatedConfig, Rt as OptimizeCssOutput, S as BuildOverrides, Sn as RobotsTxtResults, St as HotModuleReplacement, T as CompileScriptMinifyOptions, Tn as ServiceWorkerConfig, Tt as HydratedFlag, U as CompilerFileWatcherCallback, Un as WorkerOptions, Ut as OutputTargetBase, V as CompilerEventName, Vn as WatcherCloseResults, Vt as OutputTarget, W as CompilerFileWatcherEvent, Wt as OutputTargetBaseNext, X as CompilerSystemCreateDirectoryResults, Xt as OutputTargetDocsAgentSkill, Y as CompilerSystemCreateDirectoryOptions, Yt as OutputTargetDistLazy, Z as CompilerSystemRealpathResults, Zt as OutputTargetDocsCustom, _ as BuildLog, _n as PrerenderStartOptions, _r as StyleDoc, _t as DocsReadmeCustomColumn, a as ComponentGlobalStyle, an as OutputTargetSsrWasm, ar as JsonDocsEvent, at as Config, b as BuildOnEvents, bn as ResolveModuleOptions, bt as HmrGlobalStyleUpdate, c as PackageJsonData, cn as OutputTargetTypes, cr as JsonDocsMethodReturn, ct as CopyResults, dn as ParsedPath, dr as JsonDocsSlot, dt as CustomElementsExportBehavior, en as OutputTargetDocsReadme, er as JsonDocMethodParameter, et as CompilerSystemRemoveFileResults, f as SsrResults, fn as PlatformPath, fr as JsonDocsStyle, ft as CustomElementsExportBehaviorOptions, g as BuildEvents, gn as PrerenderResults, gr as JsonDocsValue, gt as Diagnostic, h as BuildEmitEvents, hn as PrerenderOptions, hr as JsonDocsUsage, ht as DevServerEditor, i as ComponentCompilerTypeReferences, in as OutputTargetSsr, ir as JsonDocsDependencyGraph, it as CompilerWatcher, j as CompilerEventBuildFinish, jn as StencilDevServerConfig, jt as LogLevel, k as CompilerBuildStart, kn as SsrFactoryOptions, kt as LoadConfigInit, l as PrintLine, ln as OutputTargetWww, lr as JsonDocsPart, lt as CopyTask, m as AutoprefixerOptions, mn as PrerenderHydrateOptions, mr as JsonDocsTypeLibrary, mt as DevServerConfig, n as CompilerWorkerContext, nn as OutputTargetGlobalStyle, nr as JsonDocsComponent, nt as CompilerSystemRenamedPath, on as OutputTargetStandalone, or as JsonDocsListener, ot as ConfigBundle, p as WorkerMsgHandler, pn as PrerenderConfig, pr as JsonDocsTag, pt as DevServer, q as CompilerRequestResponse, qt as OutputTargetCopy, r as ComponentCompilerMeta, rn as OutputTargetLoaderBundle, rr as JsonDocsCustomState, rt as CompilerSystemWriteFileResults, s as LazyBundlesRuntimeData, sn as OutputTargetStats, sr as JsonDocsMethod, st as ConfigCompat, tn as OutputTargetDocsVscode, tr as JsonDocs, tt as CompilerSystemRenameResults, un as PageReloadStrategy, ur as JsonDocsProp, ut as Credentials, v as BuildNoChangeResults, vn as ResolveModuleIdOptions, vr as FsWriteResults, vt as FsWatchResults, w as CliInitOptions, wn as SerializeDocumentOptions, wt as HydrateFactoryOptions, x as BuildOutput, xn as RobotsTxtOpts, xt as HmrStyleUpdate, y as BuildOnEventRemove, yn as ResolveModuleIdResults, yt as HistoryApiFallback, z as CompilerEventFileUpdate, zn as ValidatedConfig, zt as OptimizeJsInput } from "../index-BxnFTzyD.mjs";
1
+ import { $ as CompilerFsStats, $n as WorkerMainController, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrFactoryOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsStyle, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsValue, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsUsage, Et as FsWatchResults, F as Compiler, Fn as SerializeDocumentOptions, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as TransformOptions, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilDevServerConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as ServiceWorkerConfig, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileResults, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TranspileOnlyResults, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as SitemapXmpOpts, Lt as LoadConfigInit, M as CliInitOptions, Mn as RobotsTxtOpts, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtResults, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as StyleDoc, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RolldownConfig, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as WatcherCloseResults, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpResults, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsSlot, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTypeLibrary, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDocsConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as StencilConfig, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as SystemDetails, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as ValidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as UnvalidatedConfig, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedOutputTargetWww, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsListener, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsPart, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dr as JsonDocMethodParameter, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerOptions, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocs, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsEvent, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsDependencyGraph, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleOptions, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveModuleIdOptions, kr as FsWriteResults, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lr as UserBuildConditionals, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsCustomState, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocsComponent, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOptions, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsMethod, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsTag, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsProp, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethodReturn, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SsrDocumentOptions, zt as LogLevel } from "../index-DVRMGB2z.mjs";
2
2
  import ts from "typescript";
3
- import { Plugin } from "rolldown";
3
+ import { Plugin as Plugin$1 } from "rolldown";
4
4
  //#region src/version.d.ts
5
5
  declare const version: string;
6
6
  declare const buildId: string;
@@ -461,4 +461,4 @@ declare const validateConfig: (userConfig: UnvalidatedConfig, bootstrapConfig: L
461
461
  */
462
462
  declare const validateHydrated: (config: UnvalidatedConfig) => HydratedFlag | null;
463
463
  //#endregion
464
- 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, type ComponentCompilerMeta, type ComponentCompilerTypeReferences, type ComponentGlobalStyle, type ComponentTypesConfig, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, type CustomElementsManifest, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, type FsWriteResults, 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, type LazyBundlesRuntimeData, 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, type PackageJsonData, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, type PrintLine, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, type SsrResults, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
464
+ export { AutoprefixerOptions, type BuildCtx, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, type CompilerCtx, 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, type ComponentCompilerEvent, type ComponentCompilerListener, type ComponentCompilerMeta, type ComponentCompilerMethod, type ComponentCompilerProperty, type ComponentCompilerState, type ComponentCompilerTypeReferences, type ComponentGlobalStyle, type ComponentTypesConfig, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, type CustomElementsManifest, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocsReadmeCustomColumn, FsWatchResults, type FsWriteResults, 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, type LazyBundlesRuntimeData, 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, type PackageJsonData, PageReloadStrategy, ParsedPath, PlatformPath, Plugin, PluginCtx, PluginTransformResults, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, type PrerenderUrlResults, type PrintLine, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, type SsrResults, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
@@ -1,3 +1,3 @@
1
- import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-DhVflHyt.mjs";
2
- import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-v9OHhp0m.mjs";
1
+ import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-Cqosnj9m.mjs";
2
+ import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-DGo5Qu7U.mjs";
3
3
  export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
@@ -1,4 +1,4 @@
1
- import { $i as GLOBAL_STYLE, $r as isOutputTargetDocsAgentSkill, Ai as createOnWarnFn, Ar as isJsxFile, Bi as COLLECTION_MANIFEST_FILE_NAME, Br as result_d_exports, Ci as shouldIgnoreError, Cr as addDocBlock, Di as augmentDiagnosticWithNode, Dr as hasDependency, Ei as splitLineBreaks, Er as getTextDocs, Fi as stringifyRuntimeData, Fr as readPackageJson, Gi as DOCS_AGENT_SKILL, Gr as getComponentsDtsTypesFilePath, Hi as CUSTOM, Hr as filterActiveTargets, Ii as ASSETS, Ir as getInlineSourceMappingUrlLinker, Ji as DOCS_JSON, Jr as isOutputTargetCollection, Ki as DOCS_CUSTOM, Kr as getComponentsFromModules, Li as CMP_FLAGS, Lr as getSourceMappingUrlForEndOfFile, Mi as loadRolldownDiagnostics, Mr as isTsxFile, Ni as formatComponentRuntimeMeta, Nr as parsePackageJson, Oi as loadTypeScriptDiagnostic, Or as isDtsFile, Pi as formatLazyBundleRuntimeMeta, Pr as readOnlyArrayHasStringMember, Qi as GENERATED_DTS, Qr as isOutputTargetDocs, Ri as COLLECTION, Rr as getSourceMappingUrlLinker, Si as hasWarning, Sr as ParsePackageJsonResult, Ti as normalizeDiagnostics, Tr as generatePreamble, Ui as DEFAULT_STYLE_MODE, Ur as filterExcludedComponents, Vi as COPY, Vr as FilterComponentsResult, Wi as DIST_LAZY, Wr as getComponentsDtsSrcFilePath, Xi as DOCS_VSCODE, Xr as isOutputTargetCustom, Yi as DOCS_README, Yr as isOutputTargetCopy, Zi as EVENT_FLAGS, Zr as isOutputTargetDistLazy, _i as buildError, aa as NODE_TYPES, ai as isOutputTargetGlobalStyle, bi as catchError, br as validateComponentModes, ca as STANDALONE, ci as isOutputTargetSsrWasm, da as SVG_NS, di as isOutputTargetTypes, ea as HOST_FLAGS, ei as isOutputTargetDocsCustom, fa as TYPES, fi as isOutputTargetWww, ga as XLINK_NS, gi as TASK_CANCELED_MSG, ha as WWW, hi as shouldExcludeComponent, ia as MEMBER_FLAGS, ii as isOutputTargetDocsVscode, ji as isRolldownError, jr as isTsFile, ki as loadTypeScriptDiagnostics, kr as isJsFile, la as STATS, li as isOutputTargetStandalone, ma as WATCH_FLAGS, mi as relativeImport, na as LISTENER_FLAGS, ni as isOutputTargetDocsJson, oa as SSR, oi as isOutputTargetLoaderBundle, pa as VALID_CONFIG_OUTPUT_TARGETS, pi as isValidConfigOutputTarget, qi as DOCS_CUSTOM_ELEMENTS_MANIFEST, qr as isOutputTargetAssets, ra as LOADER_BUNDLE, ri as isOutputTargetDocsReadme, sa as SSR_WASM, si as isOutputTargetSsr, ta as HTML_NS, ti as isOutputTargetDocsCustomElementsManifest, ua as STYLE_EXT, ui as isOutputTargetStats, vi as buildJsonFileError, wi as escapeHtml, wr as createJsVarName, xi as hasError, xr as validateComponentTag, yi as buildWarn, yr as ModeValidationError, zi as COLLECTION_APP_DATA_FILE_NAME, zr as rolldownToStencilSourceMap } from "../../index-BxnFTzyD.mjs";
1
+ import { $i as CUSTOM, $r as filterActiveTargets, Ai as buildWarn, Ar as ModeValidationError, Bi as loadTypeScriptDiagnostics, Br as isJsFile, Ca as TYPES, Ci as isOutputTargetWww, Da as XLINK_NS, Di as TASK_CANCELED_MSG, Ea as WWW, Ei as shouldExcludeComponent, Fi as escapeHtml, Fr as createJsVarName, Gi as formatLazyBundleRuntimeMeta, Gr as readOnlyArrayHasStringMember, Hi as isRolldownError, Hr as isTsFile, Ii as normalizeDiagnostics, Ir as generatePreamble, Ji as CMP_FLAGS, Jr as getSourceMappingUrlForEndOfFile, Ki as stringifyRuntimeData, Kr as readPackageJson, Li as splitLineBreaks, Lr as getTextDocs, Mi as hasError, Mr as validateComponentTag, Ni as hasWarning, Nr as ParsePackageJsonResult, Oi as buildError, Pi as shouldIgnoreError, Pr as addDocBlock, Qi as COPY, Qr as FilterComponentsResult, Ri as augmentDiagnosticWithNode, Rr as hasDependency, Sa as SVG_NS, Si as isOutputTargetTypes, Ta as WATCH_FLAGS, Ti as relativeImport, Ui as loadRolldownDiagnostics, Ur as isTsxFile, Vi as createOnWarnFn, Vr as isJsxFile, Wi as formatComponentRuntimeMeta, Wr as parsePackageJson, Xi as COLLECTION_APP_DATA_FILE_NAME, Xr as rolldownToStencilSourceMap, Yi as COLLECTION, Yr as getSourceMappingUrlLinker, Zi as COLLECTION_MANIFEST_FILE_NAME, Zr as result_d_exports, _a as SSR, _i as isOutputTargetLoaderBundle, aa as DOCS_JSON, ai as isOutputTargetCollection, ba as STATS, bi as isOutputTargetStandalone, ca as EVENT_FLAGS, ci as isOutputTargetDistLazy, da as HOST_FLAGS, di as isOutputTargetDocsCustom, ea as DEFAULT_STYLE_MODE, ei as filterExcludedComponents, fa as HTML_NS, fi as isOutputTargetDocsCustomElementsManifest, ga as NODE_TYPES, gi as isOutputTargetGlobalStyle, ha as MEMBER_FLAGS, hi as isOutputTargetDocsVscode, ia as DOCS_CUSTOM_ELEMENTS_MANIFEST, ii as isOutputTargetAssets, ji as catchError, jr as validateComponentModes, ki as buildJsonFileError, la as GENERATED_DTS, li as isOutputTargetDocs, ma as LOADER_BUNDLE, mi as isOutputTargetDocsReadme, na as DOCS_AGENT_SKILL, ni as getComponentsDtsTypesFilePath, oa as DOCS_README, oi as isOutputTargetCopy, pa as LISTENER_FLAGS, pi as isOutputTargetDocsJson, qi as ASSETS, qr as getInlineSourceMappingUrlLinker, ra as DOCS_CUSTOM, ri as getComponentsFromModules, sa as DOCS_VSCODE, si as isOutputTargetCustom, ta as DIST_LAZY, ti as getComponentsDtsSrcFilePath, ua as GLOBAL_STYLE, ui as isOutputTargetDocsAgentSkill, va as SSR_WASM, vi as isOutputTargetSsr, wa as VALID_CONFIG_OUTPUT_TARGETS, wi as isValidConfigOutputTarget, xa as STYLE_EXT, xi as isOutputTargetStats, ya as STANDALONE, yi as isOutputTargetSsrWasm, zi as loadTypeScriptDiagnostic, zr as isDtsFile } from "../../index-DVRMGB2z.mjs";
2
2
  //#region src/utils/byte-size.d.ts
3
3
  /**
4
4
  * Used to learn the size of a string in bytes.
@@ -3,7 +3,7 @@ import { E as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, w as CLIENT_BUILD_FLAGS } f
3
3
  import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, J as STANDALONE, L as EVENT_FLAGS, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, a as isBoolean$1, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString$1, g as sortBy, i as fromEntries, l as isIterable, m as noop, p as mergeIntoWith, r as flatOne, t as dashToPascalCase, u as isNumber$1, v as toDashCase, w as COLLECTION, y as toTitleCase, z as GLOBAL_STYLE } from "./helpers-Cpp3qc3u.mjs";
4
4
  import { E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, c as err, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, l as map, m as loadTypeScriptDiagnostics, n as validateComponentTag, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, u as ok, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "./validation-DAdGTrys.mjs";
5
5
  import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join$2, I as isOutputTargetStats, J as resolve$2, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, V as shouldExcludeComponent, W as normalizeFsPath, X as buildError, Z as buildJsonFileError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, o as isDtsFile, p as readPackageJson, q as relative$1, r as generatePreamble, rt as isGlob, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "./util-IKfWWLJo.mjs";
6
- import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-v9OHhp0m.mjs";
6
+ import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-DGo5Qu7U.mjs";
7
7
  import ts, { default as ts$1 } from "typescript";
8
8
  import { readFileSync } from "node:fs";
9
9
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
@@ -23,7 +23,6 @@ import { minify } from "terser";
23
23
  import { SelectorType, parse, stringify } from "css-what";
24
24
  import { execFile } from "node:child_process";
25
25
  import { promisify } from "node:util";
26
- import { execSync } from "child_process";
27
26
  import * as os from "os";
28
27
  import browserslist from "browserslist";
29
28
  import { browserslistToTargets, transform } from "lightningcss";
@@ -462,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
462
461
  };
463
462
  //#endregion
464
463
  //#region src/version.ts
465
- const version = "5.0.0-beta.15";
466
- const buildId = "1790976317";
467
- const vermoji = "📣";
464
+ const version = "5.0.0-beta.17";
465
+ const buildId = "1791383432";
466
+ const vermoji = "🍞";
468
467
  /**
469
468
  * Get the installed version of a tool/dependency.
470
469
  * Handles packages with exports maps that point to subdirectories.
@@ -11593,14 +11592,16 @@ export declare function setAssetPath(path: string): string;
11593
11592
  };
11594
11593
  /**
11595
11594
  * Generate standalone.d.ts file for the standalone output target.
11596
- * This provides types for setNonce and setPlatformOptions.
11595
+ * This provides types for setNonce and setPlatformOptions, and re-exports the component
11596
+ * types (as loader.d.ts does) so they're reachable from a standalone-only package root.
11597
11597
  *
11598
11598
  * @param compilerCtx the current compiler context
11599
11599
  * @param typesDir the directory to write the standalone.d.ts file to
11600
11600
  * @param hasAssets whether any component declares assets, matching whether setAssetPath is actually exported
11601
11601
  */
11602
11602
  const generateStandaloneApiTypes = async (compilerCtx, typesDir, hasAssets) => {
11603
- const standaloneDtsContent = `/**
11603
+ const standaloneDtsContent = `export * from './components';
11604
+ /**
11604
11605
  * Used to specify a nonce value that corresponds with an application's CSP.
11605
11606
  * When set, the nonce will be added to all dynamically created script and style tags at runtime.
11606
11607
  * Alternatively, the nonce value can be set on a meta tag in the DOM head
@@ -19893,149 +19894,199 @@ const validateBuildFiles = (config, compilerCtx, buildCtx) => {
19893
19894
  };
19894
19895
  //#endregion
19895
19896
  //#region src/compiler/build/write-export-maps.ts
19897
+ const OWNED_CONDITIONS = [
19898
+ "types",
19899
+ "import",
19900
+ "require"
19901
+ ];
19902
+ const isJsonObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
19896
19903
  /**
19897
- * Create the shared {@link NpmPkgSet} used across a single `writeExportMaps` run.
19898
- * @param buildCtx The build context to report a warning diagnostic on if `npm` can't be run
19899
- * @returns A function that shells out to `npm pkg set`, swallowing failure after warning once
19900
- */
19901
- const createNpmPkgSet = (buildCtx) => {
19902
- let npmAvailable = true;
19903
- return (cmd) => {
19904
- if (!npmAvailable) return;
19905
- try {
19906
- execSync(`npm pkg set ${cmd}`);
19907
- } catch (e) {
19908
- npmAvailable = false;
19909
- const warn = buildWarn(buildCtx.diagnostics);
19910
- warn.messageText = `Unable to generate "exports" map in package.json: the "npm" CLI could not be run (${e.message ?? e}). Set "generateExportMaps: false" in your Stencil config to silence this warning.`;
19911
- }
19912
- };
19913
- };
19914
- /**
19915
- * Create export map entry point definitions for the `package.json` file using the npm CLI.
19904
+ * Write the `exports` map entry points into the project's `package.json`.
19916
19905
  *
19917
- * In v5, this uses a "smart default" approach:
19918
- * - Check if exports["."] already points to a valid output (loader-bundle or standalone)
19919
- * - If valid, leave it alone (respect user customization)
19920
- * - If missing or invalid, set a sensible default (loader-bundle > standalone priority)
19921
- * - Always ensure types field is set correctly
19922
- * - Generate per-component exports for standalone output
19906
+ * - `exports["."]`: an `import` / `types` target that exists on disk is left alone
19907
+ * (respects user customization), otherwise a default is set (loader-bundle > standalone)
19908
+ * - every other generated entry is owned by Stencil and rewritten on each build
19909
+ * - per-component entries whose component no longer exists are removed
19910
+ * - entries Stencil doesn't generate are left untouched
19923
19911
  *
19924
19912
  * @param config The validated Stencil config
19925
- * @param compilerCtx The compiler context (used to detect a user-authored src/index.ts)
19913
+ * @param compilerCtx The compiler context
19926
19914
  * @param buildCtx The build context containing the components to generate export maps for
19927
19915
  */
19928
- const writeExportMaps = (config, compilerCtx, buildCtx) => {
19916
+ const writeExportMaps = async (config, compilerCtx, buildCtx) => {
19929
19917
  const loaderBundle = config.outputTargets.find(isOutputTargetLoaderBundle);
19930
19918
  const standalone = config.outputTargets.find(isOutputTargetStandalone);
19919
+ const ssr = config.outputTargets.find(isOutputTargetSsr);
19931
19920
  const types = config.outputTargets.find(isOutputTargetTypes);
19932
- const npmPkgSet = createNpmPkgSet(buildCtx);
19933
- generateRootExport(config, compilerCtx, buildCtx, loaderBundle, standalone, types, npmPkgSet);
19934
- if (loaderBundle) generateLoaderExport(config, loaderBundle, types, npmPkgSet);
19935
- if (standalone) generateComponentExports(config, buildCtx, standalone, npmPkgSet);
19921
+ if (!loaderBundle && !standalone && !ssr) return;
19922
+ const source = await readPackageJsonSource(config, compilerCtx);
19923
+ const pkg = source ? parsePackageJson(source, config.packageJsonFilePath).data : null;
19924
+ if (!source || !isJsonObject(pkg)) return;
19925
+ let exportMap = toExportMap(pkg.exports);
19926
+ if (loaderBundle || standalone) {
19927
+ const root = getRootExport(config, compilerCtx, exportMap["."], loaderBundle, standalone, types);
19928
+ exportMap = "." in exportMap ? {
19929
+ ...exportMap,
19930
+ ".": root
19931
+ } : {
19932
+ ".": root,
19933
+ ...exportMap
19934
+ };
19935
+ }
19936
+ const generated = getGeneratedExports(config, buildCtx, loaderBundle, standalone, ssr, types);
19937
+ if (standalone?.dir) removeStaleComponentExports(exportMap, generated, toRelativePath(config, standalone.dir));
19938
+ for (const [key, entry] of Object.entries(generated)) exportMap[key] = isString$1(entry) ? entry : mergeConditions(exportMap[key], entry);
19939
+ pkg.exports = exportMap;
19940
+ const eol = source.includes("\r\n") ? "\r\n" : "\n";
19941
+ const indent = /^([ \t]+)"/m.exec(source)?.[1] ?? 2;
19942
+ let output = JSON.stringify(pkg, null, indent);
19943
+ if (/\n\s*$/.test(source)) output += "\n";
19944
+ output = output.replace(/\n/g, eol);
19945
+ if (output !== source) await compilerCtx.fs.writeFile(config.packageJsonFilePath, output, { immediateWrite: true });
19946
+ };
19947
+ const readPackageJsonSource = async (config, compilerCtx) => {
19948
+ try {
19949
+ return await compilerCtx.fs.readFile(config.packageJsonFilePath);
19950
+ } catch {
19951
+ return;
19952
+ }
19953
+ };
19954
+ /**
19955
+ * Normalize a `package.json` `exports` value into its subpath-keyed form.
19956
+ * @param current The current `exports` value
19957
+ * @returns A new subpath-keyed `exports` object
19958
+ */
19959
+ const toExportMap = (current) => {
19960
+ if (isString$1(current)) return { ".": current };
19961
+ if (!isJsonObject(current)) return {};
19962
+ const keys = Object.keys(current);
19963
+ return keys.length > 0 && keys.every((key) => !key.startsWith(".")) ? { ".": current } : { ...current };
19936
19964
  };
19937
19965
  /**
19938
- * Generate the root export `exports["."]`.
19966
+ * Build an entry with Stencil's conditions first (`types` has to precede `import` / `require`
19967
+ * to be picked up by TypeScript), followed by any other conditions already on the entry.
19968
+ * @param current The entry's current value
19969
+ * @param owned The conditions to set; any owned condition left out is removed
19970
+ * @returns The merged entry
19971
+ */
19972
+ const mergeConditions = (current, owned) => {
19973
+ const others = isJsonObject(current) ? Object.entries(current).filter(([key]) => !OWNED_CONDITIONS.includes(key)) : [];
19974
+ const { types, import: importPath, require: requirePath } = owned;
19975
+ return Object.fromEntries([...Object.entries({
19976
+ types,
19977
+ import: importPath,
19978
+ require: requirePath
19979
+ }).filter(([, value]) => value !== void 0), ...others]);
19980
+ };
19981
+ /**
19982
+ * Get the root export `exports["."]`.
19939
19983
  *
19940
- * Uses smart default approach:
19941
- * - Check if current root export points to a valid loader-bundle or standalone output
19942
- * - If valid, leave it alone
19943
- * - If missing or invalid, set default (loader-bundle > standalone priority)
19944
19984
  * @param config The validated Stencil config
19945
- * @param compilerCtx The compiler context (used to detect a user-authored src/index.ts)
19946
- * @param buildCtx The build context containing the components to generate export maps for
19985
+ * @param compilerCtx The compiler context
19986
+ * @param current The current root entry
19947
19987
  * @param loaderBundle The loader-bundle output target, if it exists
19948
19988
  * @param standalone The standalone output target, if it exists
19949
19989
  * @param types The types output target, if it exists
19950
- * @param npmPkgSet Function used to run `npm pkg set`, tolerating an unavailable npm CLI
19990
+ * @returns The root entry to write
19951
19991
  */
19952
- const generateRootExport = (config, compilerCtx, buildCtx, loaderBundle, standalone, types, npmPkgSet) => {
19953
- if (!loaderBundle && !standalone) return;
19992
+ const getRootExport = (config, compilerCtx, current, loaderBundle, standalone, types) => {
19993
+ const isUsable = (target) => isString$1(target) ? compilerCtx.fs.accessSync(join$2(config.rootDir, target)) : target != null;
19994
+ if (isString$1(current) && isUsable(current)) return current;
19995
+ const existing = isJsonObject(current) ? current : {};
19954
19996
  const hasSrcIndex = compilerCtx.fs.accessSync(join$2(config.srcDir, "index.ts"));
19955
19997
  const rootUsesEmptyLoaderIndex = !!loaderBundle && !hasSrcIndex;
19956
- const currentImport = ((buildCtx.packageJson?.exports)?.["."])?.import;
19957
- if (!(currentImport && isValidRootExport(config, currentImport, loaderBundle, standalone))) {
19998
+ const conditions = {
19999
+ types: existing.types,
20000
+ import: existing.import,
20001
+ require: existing.require
20002
+ };
20003
+ if (!isUsable(existing.import)) {
19958
20004
  const primaryDir = loaderBundle?.dir ?? standalone?.dir;
19959
20005
  if (primaryDir) {
19960
20006
  const entryFile = rootUsesEmptyLoaderIndex ? join$2("esm", "loader.js") : "index.js";
19961
- npmPkgSet(`"exports[.][import]"="${normalizePath(relative$1(config.rootDir, join$2(primaryDir, entryFile)))}"`);
20007
+ conditions.import = toRelativePath(config, join$2(primaryDir, entryFile));
19962
20008
  if (loaderBundle?.cjs) {
19963
20009
  const cjsEntryFile = rootUsesEmptyLoaderIndex ? join$2("cjs", "loader.cjs") : "index.cjs";
19964
- npmPkgSet(`"exports[.][require]"="${normalizePath(relative$1(config.rootDir, join$2(loaderBundle.dir, cjsEntryFile)))}"`);
20010
+ conditions.require = toRelativePath(config, join$2(loaderBundle.dir, cjsEntryFile));
19965
20011
  }
19966
20012
  }
19967
20013
  }
19968
- if (types?.dir) {
19969
- const typesFile = rootUsesEmptyLoaderIndex ? "loader.d.ts" : "index.d.ts";
19970
- npmPkgSet(`"exports[.][types]"="${normalizePath(relative$1(config.rootDir, join$2(types.dir, typesFile)))}"`);
20014
+ if (types?.dir && !isUsable(existing.types)) {
20015
+ const typesFile = hasSrcIndex ? "index.d.ts" : loaderBundle ? "loader.d.ts" : "standalone.d.ts";
20016
+ conditions.types = toRelativePath(config, join$2(types.dir, typesFile));
19971
20017
  }
20018
+ return mergeConditions(existing, conditions);
19972
20019
  };
19973
20020
  /**
19974
- * Check if the current root export import path is valid
19975
- * (points to either loader-bundle or standalone output).
20021
+ * Get every non-root entry Stencil generates for the configured output targets.
20022
+ *
19976
20023
  * @param config The validated Stencil config
19977
- * @param currentImport The current import path from exports["."]
20024
+ * @param buildCtx The build context containing the components to generate export maps for
19978
20025
  * @param loaderBundle The loader-bundle output target, if it exists
19979
20026
  * @param standalone The standalone output target, if it exists
19980
- * @returns True if the current import path points to a valid output, false otherwise
20027
+ * @param ssr The ssr output target, if it exists
20028
+ * @param types The types output target, if it exists
20029
+ * @returns The generated entries, keyed by subpath
19981
20030
  */
19982
- const isValidRootExport = (config, currentImport, loaderBundle, standalone) => {
19983
- const normalizedCurrent = normalizePath(currentImport);
19984
- if (loaderBundle?.dir) {
19985
- const loaderBundlePath = normalizePath(relative$1(config.rootDir, loaderBundle.dir));
19986
- if (normalizedCurrent.includes(loaderBundlePath)) return true;
19987
- }
20031
+ const getGeneratedExports = (config, buildCtx, loaderBundle, standalone, ssr, types) => {
20032
+ const generated = {};
20033
+ if (loaderBundle) generated["./loader"] = {
20034
+ types: types?.dir ? toRelativePath(config, join$2(types.dir, "loader.d.ts")) : void 0,
20035
+ import: toRelativePath(config, join$2(loaderBundle.dir, "esm", "loader.js")),
20036
+ require: loaderBundle.cjs ? toRelativePath(config, join$2(loaderBundle.dir, "cjs", "loader.cjs")) : void 0
20037
+ };
19988
20038
  if (standalone?.dir) {
19989
- const standalonePath = normalizePath(relative$1(config.rootDir, standalone.dir));
19990
- if (normalizedCurrent.includes(standalonePath)) return true;
20039
+ const outDir = toRelativePath(config, standalone.dir);
20040
+ generated["./standalone"] = {
20041
+ types: `${outDir}/index.d.ts`,
20042
+ import: `${outDir}/index.js`
20043
+ };
20044
+ for (const cmp of buildCtx.components) generated[`./${cmp.tagName}`] = {
20045
+ types: `${outDir}/${cmp.tagName}.d.ts`,
20046
+ import: `${outDir}/${cmp.tagName}.js`
20047
+ };
19991
20048
  }
19992
- return false;
19993
- };
19994
- /**
19995
- * Ensure a path has a relative prefix (./ or ../).
19996
- * Handles cases where normalizePath/relative may or may not add the prefix.
19997
- * @param path The path to ensure has a relative prefix
19998
- * @returns The path with a relative prefix
19999
- */
20000
- const ensureRelativePrefix = (path) => {
20001
- if (path.startsWith("./") || path.startsWith("../")) return path;
20002
- return "./" + path;
20049
+ if (ssr?.dir) {
20050
+ const outDir = toRelativePath(config, ssr.dir);
20051
+ generated["./ssr"] = {
20052
+ types: `${outDir}/index.d.ts`,
20053
+ import: `${outDir}/index.js`,
20054
+ require: ssr.cjs ? `${outDir}/index.cjs` : void 0
20055
+ };
20056
+ }
20057
+ if (loaderBundle || standalone) {
20058
+ const globalStyles = config.outputTargets.filter(isOutputTargetGlobalStyle);
20059
+ const assetsDir = (config.outputTargets.find(isOutputTargetAssets) ?? globalStyles[0])?.dir;
20060
+ if (assetsDir) generated["./assets/*"] = `${toRelativePath(config, assetsDir)}/*`;
20061
+ for (const globalStyle of globalStyles) if (globalStyle.dir && globalStyle.fileName && globalStyle.dir !== assetsDir) generated[`./assets/${globalStyle.fileName}`] = toRelativePath(config, join$2(globalStyle.dir, globalStyle.fileName));
20062
+ }
20063
+ return generated;
20003
20064
  };
20004
20065
  /**
20005
- * Generate the loader export `exports["./loader"]`.
20006
- *
20007
- * Points directly to the esm/loader.js file in the loader-bundle output.
20008
- * No separate loader directory is generated - package.json exports handle the mapping.
20066
+ * Remove per-component entries Stencil generated for components that no longer exist.
20067
+ * Only an entry in the exact shape Stencil writes (`./<tag>` → `<standalone dir>/<tag>.js`)
20068
+ * is removed, so entries added by the author are left alone.
20009
20069
  *
20010
- * @param config The validated Stencil config
20011
- * @param loaderBundle The loader-bundle output target
20012
- * @param types The types output target, if it exists
20013
- * @param npmPkgSet Function used to run `npm pkg set`, tolerating an unavailable npm CLI
20070
+ * @param exportMap The export map to remove entries from
20071
+ * @param generated The entries generated by this build
20072
+ * @param standaloneDir The standalone output directory, relative to the project root
20014
20073
  */
20015
- const generateLoaderExport = (config, loaderBundle, types, npmPkgSet) => {
20016
- const esmDir = join$2(loaderBundle.dir, "esm");
20017
- npmPkgSet(`"exports[./loader][import]"="${ensureRelativePrefix(normalizePath(relative$1(config.rootDir, join$2(esmDir, "loader.js"))))}"`);
20018
- if (loaderBundle.cjs) {
20019
- const cjsDir = join$2(loaderBundle.dir, "cjs");
20020
- npmPkgSet(`"exports[./loader][require]"="${ensureRelativePrefix(normalizePath(relative$1(config.rootDir, join$2(cjsDir, "loader.cjs"))))}"`);
20074
+ const removeStaleComponentExports = (exportMap, generated, standaloneDir) => {
20075
+ for (const [key, entry] of Object.entries(exportMap)) {
20076
+ const name = key.slice(2);
20077
+ if (!key.startsWith("./") || !name.includes("-") || key in generated) continue;
20078
+ if ((isJsonObject(entry) ? entry.import : entry) === `${standaloneDir}/${name}.js`) delete exportMap[key];
20021
20079
  }
20022
- if (types?.dir) npmPkgSet(`"exports[./loader][types]"="${ensureRelativePrefix(normalizePath(relative$1(config.rootDir, join$2(types.dir, "loader.d.ts"))))}"`);
20023
20080
  };
20024
20081
  /**
20025
- * Generate per-component exports for standalone output.
20026
- * Each component gets its own subpath export: `exports["./my-component"]`
20082
+ * Get a path relative to the project root, in the `./`-prefixed form `exports` targets require.
20027
20083
  * @param config The validated Stencil config
20028
- * @param buildCtx The build context containing the components to generate export maps for
20029
- * @param standalone The standalone output target
20030
- * @param npmPkgSet Function used to run `npm pkg set`, tolerating an unavailable npm CLI
20031
- */
20032
- const generateComponentExports = (config, buildCtx, standalone, npmPkgSet) => {
20033
- let outDir = relative$1(config.rootDir, standalone.dir);
20034
- if (!outDir.startsWith(".")) outDir = "./" + outDir;
20035
- buildCtx.components.forEach((cmp) => {
20036
- npmPkgSet(`"exports[./${cmp.tagName}][import]"="${outDir}/${cmp.tagName}.js"`);
20037
- npmPkgSet(`"exports[./${cmp.tagName}][types]"="${outDir}/${cmp.tagName}.d.ts"`);
20038
- });
20084
+ * @param path The absolute path
20085
+ * @returns The relative path
20086
+ */
20087
+ const toRelativePath = (config, path) => {
20088
+ const relativePath = normalizePath(relative$1(config.rootDir, path));
20089
+ return relativePath.startsWith("./") || relativePath.startsWith("../") ? relativePath : "./" + relativePath;
20039
20090
  };
20040
20091
  //#endregion
20041
20092
  //#region src/compiler/build/write-build.ts
@@ -20058,7 +20109,7 @@ const writeBuild = async (config, compilerCtx, buildCtx) => {
20058
20109
  await compilerCtx.cache.commit();
20059
20110
  buildCtx.debug(`in-memory-fs: ${compilerCtx.fs.getMemoryStats()}`);
20060
20111
  buildCtx.debug(`cache: ${compilerCtx.cache.getMemoryStats()}`);
20061
- if (config.generateExportMaps && !config.devMode) writeExportMaps(config, compilerCtx, buildCtx);
20112
+ if (config.generateExportMaps && !config.devMode) await writeExportMaps(config, compilerCtx, buildCtx);
20062
20113
  await outputServiceWorkers(config, buildCtx);
20063
20114
  await validateBuildFiles(config, compilerCtx, buildCtx);
20064
20115
  } catch (e) {
@@ -22122,7 +22173,7 @@ const validateConfig = (userConfig = {}, bootstrapConfig) => {
22122
22173
  ...config,
22123
22174
  devMode,
22124
22175
  compat: config.compat || {},
22125
- generateExportMaps: isBoolean$1(config.generateExportMaps) ? config.generateExportMaps : !isString$1(config.configPath),
22176
+ generateExportMaps: config.generateExportMaps === true,
22126
22177
  enableCssOnlyComponents: config.enableCssOnlyComponents ?? true,
22127
22178
  hydratedFlag: validateHydrated(config),
22128
22179
  logLevel,
@@ -1,5 +1,5 @@
1
1
  import { ListenTargetOptions, ResolutionHandler } from "./stencil-public-runtime.js";
2
- import { InputOptions, Plugin, SourceMap } from "rolldown";
2
+ import { InputOptions, Plugin as Plugin$1, SourceMap } from "rolldown";
3
3
  import "typescript";
4
4
  //#region src/utils/result.d.ts
5
5
  /**
@@ -1538,28 +1538,6 @@ interface Module {
1538
1538
  hasVdomXlink: boolean;
1539
1539
  hasSignalsImport: boolean;
1540
1540
  }
1541
- interface Plugin$1 {
1542
- name?: string;
1543
- pluginType?: string;
1544
- load?: (id: string, context: PluginCtx) => Promise<string> | string;
1545
- resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
1546
- transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
1547
- }
1548
- type PluginTransformResults = PluginTransformationDescriptor | string | null;
1549
- interface PluginTransformationDescriptor {
1550
- code?: string;
1551
- map?: string;
1552
- id?: string;
1553
- diagnostics?: Diagnostic[];
1554
- dependencies?: string[];
1555
- }
1556
- interface PluginCtx {
1557
- config: Config;
1558
- sys: CompilerSystem;
1559
- fs: InMemoryFileSystem;
1560
- cache: Cache;
1561
- diagnostics: Diagnostic[];
1562
- }
1563
1541
  interface PrerenderUrlResults {
1564
1542
  anchorUrls: string[];
1565
1543
  diagnostics: Diagnostic[];
@@ -1789,8 +1767,7 @@ interface StencilConfig {
1789
1767
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
1790
1768
  * for each component in the build when `true`.
1791
1769
  *
1792
- * Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
1793
- * whenever a config file is present - set this explicitly to opt an existing project in or out.
1770
+ * @default false
1794
1771
  */
1795
1772
  generateExportMaps?: boolean;
1796
1773
  /**
@@ -1823,7 +1800,7 @@ interface StencilConfig {
1823
1800
  * property). By default, Stencil does not come with Sass or PostCSS support.
1824
1801
  * However, either can be added using the plugin array.
1825
1802
  */
1826
- plugins?: (Plugin$1 | Plugin)[];
1803
+ plugins?: (Plugin | Plugin$1)[];
1827
1804
  /**
1828
1805
  * Generate js source map files for all bundles.
1829
1806
  * Set to `true` to always generate source maps, `false` to never generate source maps.
@@ -1949,8 +1926,8 @@ interface StencilConfig {
1949
1926
  maxConcurrentWorkers?: number;
1950
1927
  preamble?: string;
1951
1928
  rolldownPlugins?: {
1952
- before?: Plugin[];
1953
- after?: Plugin[];
1929
+ before?: Plugin$1[];
1930
+ after?: Plugin$1[];
1954
1931
  };
1955
1932
  entryComponentsHint?: string[];
1956
1933
  buildLogFilePath?: string;
@@ -4549,5 +4526,30 @@ interface CliInitOptions {
4549
4526
  logger: Logger;
4550
4527
  sys: CompilerSystem;
4551
4528
  }
4529
+ /**
4530
+ * A Stencil `resolveId`/`load`/`transform` plugin, as accepted by {@link StencilConfig.plugins}.
4531
+ */
4532
+ interface Plugin {
4533
+ name?: string;
4534
+ pluginType?: string;
4535
+ load?: (id: string, context: PluginCtx) => Promise<string> | string;
4536
+ resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
4537
+ transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
4538
+ }
4539
+ type PluginTransformResults = PluginTransformationDescriptor | string | null;
4540
+ interface PluginTransformationDescriptor {
4541
+ code?: string;
4542
+ map?: string;
4543
+ id?: string;
4544
+ diagnostics?: Diagnostic[];
4545
+ dependencies?: string[];
4546
+ }
4547
+ interface PluginCtx {
4548
+ config: Config;
4549
+ sys: CompilerSystem;
4550
+ fs: InMemoryFileSystem;
4551
+ cache: Cache;
4552
+ diagnostics: Diagnostic[];
4553
+ }
4552
4554
  //#endregion
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 };
4555
+ 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, Plugin, PluginCtx, PluginTransformResults, 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 };
@@ -1807,8 +1807,7 @@ interface StencilConfig {
1807
1807
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
1808
1808
  * for each component in the build when `true`.
1809
1809
  *
1810
- * Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
1811
- * whenever a config file is present - set this explicitly to opt an existing project in or out.
1810
+ * @default false
1812
1811
  */
1813
1812
  generateExportMaps?: boolean;
1814
1813
  /**
@@ -4567,6 +4566,31 @@ interface CliInitOptions {
4567
4566
  logger: Logger;
4568
4567
  sys: CompilerSystem;
4569
4568
  }
4569
+ /**
4570
+ * A Stencil `resolveId`/`load`/`transform` plugin, as accepted by {@link StencilConfig.plugins}.
4571
+ */
4572
+ interface Plugin$1 {
4573
+ name?: string;
4574
+ pluginType?: string;
4575
+ load?: (id: string, context: PluginCtx) => Promise<string> | string;
4576
+ resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
4577
+ transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
4578
+ }
4579
+ type PluginTransformResults = PluginTransformationDescriptor | string | null;
4580
+ interface PluginTransformationDescriptor {
4581
+ code?: string;
4582
+ map?: string;
4583
+ id?: string;
4584
+ diagnostics?: Diagnostic$1[];
4585
+ dependencies?: string[];
4586
+ }
4587
+ interface PluginCtx {
4588
+ config: Config;
4589
+ sys: CompilerSystem;
4590
+ fs: InMemoryFileSystem;
4591
+ cache: Cache;
4592
+ diagnostics: Diagnostic$1[];
4593
+ }
4570
4594
  //#endregion
4571
4595
  //#region src/declarations/stencil-private.d.ts
4572
4596
  /** Build-time virtual `@import`s a `global-style` input can use to place Stencil-generated CSS. */
@@ -5578,28 +5602,6 @@ interface Module {
5578
5602
  hasVdomXlink: boolean;
5579
5603
  hasSignalsImport: boolean;
5580
5604
  }
5581
- interface Plugin$1 {
5582
- name?: string;
5583
- pluginType?: string;
5584
- load?: (id: string, context: PluginCtx) => Promise<string> | string;
5585
- resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
5586
- transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
5587
- }
5588
- type PluginTransformResults = PluginTransformationDescriptor | string | null;
5589
- interface PluginTransformationDescriptor {
5590
- code?: string;
5591
- map?: string;
5592
- id?: string;
5593
- diagnostics?: Diagnostic$1[];
5594
- dependencies?: string[];
5595
- }
5596
- interface PluginCtx {
5597
- config: Config;
5598
- sys: CompilerSystem;
5599
- fs: InMemoryFileSystem;
5600
- cache: Cache;
5601
- diagnostics: Diagnostic$1[];
5602
- }
5603
5605
  interface PrerenderUrlResults {
5604
5606
  anchorUrls: string[];
5605
5607
  diagnostics: Diagnostic$1[];
@@ -6204,4 +6206,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
6204
6206
  */
6205
6207
  type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
6206
6208
  //#endregion
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 };
6209
+ export { CompilerFsStats as $, CUSTOM as $i, WorkerMainController as $n, filterActiveTargets as $r, OutputTargetBuild as $t, BuildOverrides as A, buildWarn as Ai, ResolveModuleIdResults as An, ModeValidationError as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, loadTypeScriptDiagnostics as Bi, SsrFactoryOptions as Bn, isJsFile as Br, Logger as Bt, BuildEmitEvents as C, TYPES as Ca, isOutputTargetWww as Ci, PluginTransformResults as Cn, JsonDocsStyle as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, XLINK_NS as Da, TASK_CANCELED_MSG as Di, PrerenderResults as Dn, JsonDocsValue as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, WWW as Ea, shouldExcludeComponent as Ei, PrerenderOptions as En, JsonDocsUsage as Er, FsWatchResults as Et, Compiler as F, escapeHtml as Fi, SerializeDocumentOptions as Fn, createJsVarName as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, formatLazyBundleRuntimeMeta as Gi, TransformOptions as Gn, readOnlyArrayHasStringMember as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, isRolldownError as Hi, StencilDevServerConfig as Hn, isTsFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, normalizeDiagnostics as Ii, ServiceWorkerConfig as In, generatePreamble as Ir, LightDomPatches as It, CompilerEventFsChange as J, CMP_FLAGS as Ji, TranspileResults as Jn, getSourceMappingUrlForEndOfFile as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, stringifyRuntimeData as Ki, TranspileOnlyResults as Kn, readPackageJson as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, splitLineBreaks as Li, SitemapXmpOpts as Ln, getTextDocs as Lr, LoadConfigInit as Lt, CliInitOptions as M, hasError as Mi, RobotsTxtOpts as Mn, validateComponentTag as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, hasWarning as Ni, RobotsTxtResults as Nn, ParsePackageJsonResult as Nr, HydratedFlag as Nt, BuildOnEvents as O, buildError as Oi, PrerenderStartOptions as On, StyleDoc as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, shouldIgnoreError as Pi, RolldownConfig as Pn, addDocBlock as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, COPY as Qi, WatcherCloseResults as Qn, FilterComponentsResult as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, augmentDiagnosticWithNode as Ri, SitemapXmpResults as Rn, hasDependency as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, SVG_NS as Sa, isOutputTargetTypes as Si, PluginCtx as Sn, JsonDocsSlot as Sr, DevServerConfig as St, BuildLog as T, WATCH_FLAGS as Ta, relativeImport as Ti, PrerenderHydrateOptions as Tn, JsonDocsTypeLibrary as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, loadRolldownDiagnostics as Ui, StencilDocsConfig as Un, isTsxFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, createOnWarnFn as Vi, StencilConfig as Vn, isJsxFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, formatComponentRuntimeMeta as Wi, SystemDetails as Wn, parsePackageJson as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, COLLECTION_APP_DATA_FILE_NAME as Xi, ValidatedConfig as Xn, rolldownToStencilSourceMap as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, COLLECTION as Yi, UnvalidatedConfig as Yn, getSourceMappingUrlLinker as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, COLLECTION_MANIFEST_FILE_NAME as Zi, ValidatedOutputTargetWww as Zn, result_d_exports as Zr, OutputTargetBase as Zt, PrintLine as _, SSR as _a, isOutputTargetLoaderBundle as _i, OutputTargetWww as _n, JsonDocsListener as _r, CopyTask as _t, ComponentCompilerEvent as a, DOCS_JSON as aa, isOutputTargetCollection as ai, OutputTargetDocsCustom as an, RafCallback as ar, CompilerSystemRealpathResults as at, SsrResults as b, STATS as ba, isOutputTargetStandalone as bi, PlatformPath as bn, JsonDocsPart as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, EVENT_FLAGS as ca, isOutputTargetDistLazy as ci, OutputTargetDocsReadme as cn, TagTransformer as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, HOST_FLAGS as da, isOutputTargetDocsCustom as di, OutputTargetLoaderBundle as dn, JsonDocMethodParameter as dr, CompilerSystemWriteFileResults as dt, DEFAULT_STYLE_MODE as ea, filterExcludedComponents as ei, OutputTargetCollection as en, WorkerOptions as er, CompilerRequest as et, ComponentGlobalStyle as f, HTML_NS as fa, isOutputTargetDocsCustomElementsManifest as fi, OutputTargetSsr as fn, JsonDocs as fr, CompilerWatcher as ft, PrerenderUrlResults as g, NODE_TYPES as ga, isOutputTargetGlobalStyle as gi, OutputTargetTypes as gn, JsonDocsEvent as gr, CopyResults as gt, PackageJsonData as h, MEMBER_FLAGS as ha, isOutputTargetDocsVscode as hi, OutputTargetStats as hn, JsonDocsDependencyGraph as hr, ConfigCompat as ht, CompilerWorkerContext as i, DOCS_CUSTOM_ELEMENTS_MANIFEST as ia, isOutputTargetAssets as ii, OutputTargetDocsAgentSkill as in, MixedInCtor as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, catchError as ji, ResolveModuleOptions as jn, validateComponentModes as jr, HydrateDocumentOptions as jt, BuildOutput as k, buildJsonFileError as ki, ResolveModuleIdOptions as kn, FsWriteResults as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, GENERATED_DTS as la, isOutputTargetDocs as li, OutputTargetDocsVscode as ln, UserBuildConditionals as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, LOADER_BUNDLE as ma, isOutputTargetDocsReadme as mi, OutputTargetStandalone as mn, JsonDocsCustomState as mr, ConfigBundle as mt, ChildType as n, DOCS_AGENT_SKILL as na, getComponentsDtsTypesFilePath as ni, OutputTargetCustom as nn, ErrorHandler as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_README as oa, isOutputTargetCopy as oi, OutputTargetDocsCustomElementsManifest as on, ReactiveControllerHostInterface as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, LISTENER_FLAGS as pa, isOutputTargetDocsJson as pi, OutputTargetSsrWasm as pn, JsonDocsComponent as pr, Config as pt, CompilerEventFileUpdate as q, ASSETS as qi, TranspileOptions as qn, getInlineSourceMappingUrlLinker as qr, OptimizeJsInput as qt, CompilerCtx as r, DOCS_CUSTOM as ra, getComponentsFromModules as ri, OutputTargetDistLazy as rn, FunctionalComponent as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_VSCODE as sa, isOutputTargetCustom as si, OutputTargetDocsJson as sn, ResolutionHandler as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, DIST_LAZY as ta, getComponentsDtsSrcFilePath as ti, OutputTargetCopy as tn, ComponentInterface as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, GLOBAL_STYLE as ua, isOutputTargetDocsAgentSkill as ui, OutputTargetGlobalStyle as un, VNode as ur, CompilerSystemRenamedPath as ut, PropsType as v, SSR_WASM as va, isOutputTargetSsr as vi, PageReloadStrategy as vn, JsonDocsMethod as vr, Credentials as vt, BuildEvents as w, VALID_CONFIG_OUTPUT_TARGETS as wa, isValidConfigOutputTarget as wi, PrerenderConfig as wn, JsonDocsTag as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, STYLE_EXT as xa, isOutputTargetStats as xi, Plugin$1 as xn, JsonDocsProp as xr, DevServer as xt, RuntimeRef as y, STANDALONE as ya, isOutputTargetSsrWasm as yi, ParsedPath as yn, JsonDocsMethodReturn as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, loadTypeScriptDiagnostic as zi, SsrDocumentOptions as zn, isDtsFile as zr, LogLevel as zt };
@@ -1,4 +1,4 @@
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";
1
+ import { ar as RafCallback, cr as TagTransformer, lr as UserBuildConditionals, n as ChildType, nr as ErrorHandler, p as HostElement, rr as FunctionalComponent, sr as ResolutionHandler, ur as VNode, v as PropsType, y as RuntimeRef } from "./index-DVRMGB2z.mjs";
2
2
  //#region src/client/client-build.d.ts
3
3
  declare const Build: UserBuildConditionals;
4
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -14,6 +14,7 @@ export type {
14
14
  ComponentShouldUpdateChanges,
15
15
  ComponentWillLoad,
16
16
  ComponentWillUpdate,
17
+ ErrorHandler,
17
18
  EventEmitter,
18
19
  EventOptions,
19
20
  FunctionalComponent,
@@ -28,6 +29,8 @@ export type {
28
29
  RafCallback,
29
30
  ReactiveController,
30
31
  ReactiveControllerHostInterface,
32
+ ResolutionHandler,
33
+ TagTransformer,
31
34
  VNode,
32
35
  VNodeData,
33
36
  } from './declarations/stencil-public-runtime';
@@ -1,4 +1,4 @@
1
- import { J as CompilerSystem, Mt as Logger } from "../../index-BxnFTzyD.mjs";
1
+ import { Bt as Logger, nt as CompilerSystem } from "../../index-DVRMGB2z.mjs";
2
2
  //#region src/sys/node/logger/index.d.ts
3
3
  /**
4
4
  * Create a logger to run in a Node environment
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-v9OHhp0m.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-DGo5Qu7U.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-DhVflHyt.mjs";
2
- import { t as createNodeSys } from "../../node-v9OHhp0m.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-Cqosnj9m.mjs";
2
+ import { t as createNodeSys } from "../../node-DGo5Qu7U.mjs";
3
3
  //#region src/sys/node/node-worker-thread.ts
4
4
  /**
5
5
  * Initialize a worker thread, setting up various machinery for managing
@@ -942,8 +942,7 @@ interface StencilConfig {
942
942
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
943
943
  * for each component in the build when `true`.
944
944
  *
945
- * Defaults to `true` for "no-config" projects (no `stencil.config.ts`/`.js` file), and `false`
946
- * whenever a config file is present - set this explicitly to opt an existing project in or out.
945
+ * @default false
947
946
  */
948
947
  generateExportMaps?: boolean;
949
948
  /**
@@ -3009,6 +3008,31 @@ interface LazyRequire {
3009
3008
  require(fromDir: string, moduleId: string): any;
3010
3009
  getModulePath(fromDir: string, moduleId: string): string;
3011
3010
  }
3011
+ /**
3012
+ * A Stencil `resolveId`/`load`/`transform` plugin, as accepted by {@link StencilConfig.plugins}.
3013
+ */
3014
+ interface Plugin$1 {
3015
+ name?: string;
3016
+ pluginType?: string;
3017
+ load?: (id: string, context: PluginCtx) => Promise<string> | string;
3018
+ resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
3019
+ transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
3020
+ }
3021
+ type PluginTransformResults = PluginTransformationDescriptor | string | null;
3022
+ interface PluginTransformationDescriptor {
3023
+ code?: string;
3024
+ map?: string;
3025
+ id?: string;
3026
+ diagnostics?: Diagnostic[];
3027
+ dependencies?: string[];
3028
+ }
3029
+ interface PluginCtx {
3030
+ config: Config;
3031
+ sys: CompilerSystem;
3032
+ fs: InMemoryFileSystem;
3033
+ cache: Cache;
3034
+ diagnostics: Diagnostic[];
3035
+ }
3012
3036
  //#endregion
3013
3037
  //#region src/declarations/stencil-private.d.ts
3014
3038
  /** Build-time virtual `@import`s a `global-style` input can use to place Stencil-generated CSS. */
@@ -3968,28 +3992,6 @@ interface Module {
3968
3992
  hasVdomXlink: boolean;
3969
3993
  hasSignalsImport: boolean;
3970
3994
  }
3971
- interface Plugin$1 {
3972
- name?: string;
3973
- pluginType?: string;
3974
- load?: (id: string, context: PluginCtx) => Promise<string> | string;
3975
- resolveId?: (importee: string, importer: string, context: PluginCtx) => Promise<string> | string;
3976
- transform?: (sourceText: string, id: string, context: PluginCtx) => Promise<PluginTransformResults> | PluginTransformResults;
3977
- }
3978
- type PluginTransformResults = PluginTransformationDescriptor | string | null;
3979
- interface PluginTransformationDescriptor {
3980
- code?: string;
3981
- map?: string;
3982
- id?: string;
3983
- diagnostics?: Diagnostic[];
3984
- dependencies?: string[];
3985
- }
3986
- interface PluginCtx {
3987
- config: Config;
3988
- sys: CompilerSystem;
3989
- fs: InMemoryFileSystem;
3990
- cache: Cache;
3991
- diagnostics: Diagnostic[];
3992
- }
3993
3995
  interface PrerenderUrlResults {
3994
3996
  anchorUrls: string[];
3995
3997
  diagnostics: Diagnostic[];
@@ -4941,4 +4943,4 @@ declare const Host: {};
4941
4943
  //#region src/testing/platform/index.d.ts
4942
4944
  declare const setMode: (handler: (elm: any) => string | undefined | null) => void;
4943
4945
  //#endregion
4944
- export { Build, Env, Fragment, Host, Mixin, ReactiveControllerHost, type SpecPage, createEvent, createTestingSystem, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, h, mockCompilerSystem, mockComponentMeta, mockConfig, mockDocument, mockLoadConfigInit, mockLogger, mockModule, mockValidatedConfig, mockWindow, newSpecPage, readTask, registerHost, registerInstance, setAssetPath, setErrorHandler, setMode, setupConsoleMocker, shuffleArray, writeTask };
4946
+ export { Build, Env, Fragment, Host, Mixin, type NewSpecPageOptions, ReactiveControllerHost, type SpecPage, createEvent, createTestingSystem, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, h, mockCompilerSystem, mockComponentMeta, mockConfig, mockDocument, mockLoadConfigInit, mockLogger, mockModule, mockValidatedConfig, mockWindow, newSpecPage, readTask, registerHost, registerInstance, setAssetPath, setErrorHandler, setMode, setupConsoleMocker, shuffleArray, writeTask };
@@ -33,7 +33,7 @@ import "@rollup/pluginutils";
33
33
  import { createHash } from "crypto";
34
34
  import { afterAll, vi } from "vitest";
35
35
  //#region src/version.ts
36
- const version = "5.0.0-beta.15";
36
+ const version = "5.0.0-beta.17";
37
37
  const MEMBER_FLAGS = {
38
38
  String: 1,
39
39
  Number: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-beta.15",
3
+ "version": "5.0.0-beta.17",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -126,9 +126,9 @@
126
126
  "terser": "^5.50.0",
127
127
  "tinyglobby": "^0.2.17",
128
128
  "typescript": ">5.0.0 <7.0.0",
129
- "@stencil/mock-doc": "5.0.0-beta.15",
130
- "@stencil/cli": "5.0.0-beta.15",
131
- "@stencil/dev-server": "5.0.0-beta.15"
129
+ "@stencil/dev-server": "5.0.0-beta.17",
130
+ "@stencil/cli": "5.0.0-beta.17",
131
+ "@stencil/mock-doc": "5.0.0-beta.17"
132
132
  },
133
133
  "devDependencies": {
134
134
  "@ionic/prettier-config": "^4.0.0",
@@ -6,7 +6,6 @@ import fs from "node:fs";
6
6
  import nodePath from "node:path";
7
7
  import { pathToFileURL } from "node:url";
8
8
  import path from "path";
9
- import * as cp from "child_process";
10
9
  import chalk from "chalk";
11
10
  import { createHash } from "node:crypto";
12
11
  import * as os from "node:os";
@@ -20,6 +19,7 @@ import satisfies from "semver/functions/satisfies.js";
20
19
  import { cpus as cpus$1, tmpdir as tmpdir$1 } from "os";
21
20
  import semverLt from "semver/functions/lt.js";
22
21
  import { EventEmitter } from "events";
22
+ import * as cp from "child_process";
23
23
  //#region src/compiler/events.ts
24
24
  const buildEvents = () => {
25
25
  const evCallbacks = [];