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

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.16";
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,4 +1,4 @@
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 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-Bj4ASC2H.mjs";
2
2
  import ts from "typescript";
3
3
  import { Plugin } from "rolldown";
4
4
  //#region src/version.d.ts
@@ -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-BIPF8u8e.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 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-Bj4ASC2H.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.16";
465
+ const buildId = "1791325639";
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,
@@ -1789,8 +1789,7 @@ interface StencilConfig {
1789
1789
  * Will generate {@link https://nodejs.org/api/packages.html#packages_exports export map} entry points
1790
1790
  * for each component in the build when `true`.
1791
1791
  *
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.
1792
+ * @default false
1794
1793
  */
1795
1794
  generateExportMaps?: boolean;
1796
1795
  /**
@@ -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
  /**
@@ -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 { $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-Bj4ASC2H.mjs";
2
2
  //#region src/client/client-build.d.ts
3
3
  declare const Build: UserBuildConditionals;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { J as CompilerSystem, Mt as Logger } from "../../index-BxnFTzyD.mjs";
1
+ import { J as CompilerSystem, Mt as Logger } from "../../index-Bj4ASC2H.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-BIPF8u8e.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
  /**
@@ -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.16";
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.16",
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.16",
130
+ "@stencil/cli": "5.0.0-beta.16",
131
+ "@stencil/mock-doc": "5.0.0-beta.16"
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 = [];