@stencil/core 5.0.0-rc.7 → 5.0.0-rc.9
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.
- package/dist/{client-BA_FU9aB.mjs → client-DkvdNuPu.mjs} +5 -5
- package/dist/compiler/browser.d.ts +23 -5
- package/dist/compiler/browser.js +61 -11
- package/dist/compiler/index.d.mts +2 -2
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/{compiler-CH-Qh_aM.mjs → compiler-JKsb5iht.mjs} +226 -101
- package/dist/declarations/stencil-public-compiler.d.ts +25 -7
- package/dist/{index-CFiy6MZ3.d.mts → index-BxnfbT3a.d.mts} +25 -7
- package/dist/{index-CViiWNQ9.d.mts → index-xOwTL_5Z.d.mts} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-Bsfi3pOs.mjs → node-C59vQZNg.mjs} +1 -1
- package/dist/runtime/client/lazy.js +174 -137
- package/dist/runtime/client/runtime.js +174 -137
- package/dist/runtime/index.js +174 -137
- package/dist/runtime/server/index.mjs +174 -137
- package/dist/runtime/server/runner.mjs +80 -5
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.mjs +175 -138
- package/package.json +4 -4
|
@@ -800,10 +800,6 @@ const attachStyles = (hostRef) => {
|
|
|
800
800
|
*/
|
|
801
801
|
const getScopeId = (cmp, mode) => "sc-" + (BUILD.mode && mode && cmp.$flags$ & CMP_FLAGS.hasMode ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
|
|
802
802
|
//#endregion
|
|
803
|
-
//#region src/runtime/signals-core.ts
|
|
804
|
-
const getCore = () => globalThis[Symbol.for("stencil.preact-signals-core")] ??= SignalsCore;
|
|
805
|
-
const effect = (fn, options) => getCore().effect(fn, options);
|
|
806
|
-
//#endregion
|
|
807
803
|
//#region src/runtime/event-emitter.ts
|
|
808
804
|
/**
|
|
809
805
|
* Helper function to create & dispatch a custom Event on a provided target
|
|
@@ -2159,6 +2155,10 @@ const serverSideConnected = (elm) => {
|
|
|
2159
2155
|
}
|
|
2160
2156
|
};
|
|
2161
2157
|
//#endregion
|
|
2158
|
+
//#region src/runtime/signals-core.ts
|
|
2159
|
+
const getCore = () => globalThis[Symbol.for("stencil.preact-signals-core")] ??= SignalsCore;
|
|
2160
|
+
const effect = (fn, options) => getCore().effect(fn, options);
|
|
2161
|
+
//#endregion
|
|
2162
2162
|
//#region src/runtime/signals.ts
|
|
2163
2163
|
/**
|
|
2164
2164
|
* Duck-type check for Signal objects. Cross-bundle-safe (no instanceof).
|
|
@@ -2177,7 +2177,7 @@ const isSignalLike = (v) => v !== null && typeof v === "object" && typeof v.peek
|
|
|
2177
2177
|
* Modified for Stencil's compiler and vdom
|
|
2178
2178
|
*/
|
|
2179
2179
|
const h = (nodeName, vnodeData, ...children) => {
|
|
2180
|
-
if (typeof nodeName === "string") nodeName = transformTag(nodeName);
|
|
2180
|
+
if (typeof nodeName === "string" && nodeName.includes("-")) nodeName = transformTag(nodeName);
|
|
2181
2181
|
let child = null;
|
|
2182
2182
|
let key = null;
|
|
2183
2183
|
let slotName = null;
|
|
@@ -885,10 +885,18 @@ interface TranspileOptions {
|
|
|
885
885
|
*/
|
|
886
886
|
additionalTagTransformers?: boolean;
|
|
887
887
|
/**
|
|
888
|
-
* Callback used to resolve
|
|
889
|
-
*
|
|
890
|
-
*
|
|
891
|
-
*
|
|
888
|
+
* Callback used to resolve imported source during a single-file transpile.
|
|
889
|
+
* Return the resolved absolute path and source text of that module, or `null`
|
|
890
|
+
* to leave the specifier unresolved.
|
|
891
|
+
*
|
|
892
|
+
* It is called in two situations, told apart by `context.kind`:
|
|
893
|
+
* - **inheritance** (`context` is `undefined`): a component's `extends` clause
|
|
894
|
+
* references a class from another module, so the compiler can merge the
|
|
895
|
+
* parent's metadata.
|
|
896
|
+
* - **`'type-info'`**: the file uses `resolveVar()`, so the compiler follows its
|
|
897
|
+
* imports (and theirs) to read constants declared elsewhere. The returned
|
|
898
|
+
* module is only used for type information - it is never emitted or treated
|
|
899
|
+
* as a base class.
|
|
892
900
|
*
|
|
893
901
|
* @example
|
|
894
902
|
* ```ts
|
|
@@ -900,7 +908,7 @@ interface TranspileOptions {
|
|
|
900
908
|
* });
|
|
901
909
|
* ```
|
|
902
910
|
*/
|
|
903
|
-
resolveImport?: (specifier: string, importer: string) => {
|
|
911
|
+
resolveImport?: (specifier: string, importer: string, context?: ResolveImportContext) => {
|
|
904
912
|
code: string;
|
|
905
913
|
path: string;
|
|
906
914
|
} | null;
|
|
@@ -949,6 +957,16 @@ interface TranspileResults {
|
|
|
949
957
|
outputFilePath: string;
|
|
950
958
|
styleDocs?: StyleDoc[];
|
|
951
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
* Extra information passed as the third argument of {@link TranspileOptions.resolveImport}.
|
|
962
|
+
*/
|
|
963
|
+
interface ResolveImportContext {
|
|
964
|
+
/**
|
|
965
|
+
* `'type-info'` when the module is only needed for type information (e.g. `resolveVar()`
|
|
966
|
+
* reading a constant declared in another file).
|
|
967
|
+
*/
|
|
968
|
+
kind: 'type-info';
|
|
969
|
+
}
|
|
952
970
|
//#endregion
|
|
953
971
|
//#region src/declarations/stencil-private.d.ts
|
|
954
972
|
interface PrintLine {
|
package/dist/compiler/browser.js
CHANGED
|
@@ -1845,7 +1845,7 @@ const validateComponentTag = (tag) => {
|
|
|
1845
1845
|
};
|
|
1846
1846
|
//#endregion
|
|
1847
1847
|
//#region src/version.ts
|
|
1848
|
-
const version = "5.0.0-rc.
|
|
1848
|
+
const version = "5.0.0-rc.9";
|
|
1849
1849
|
//#endregion
|
|
1850
1850
|
//#region src/compiler/events.ts
|
|
1851
1851
|
const buildEvents = () => {
|
|
@@ -3898,13 +3898,22 @@ const CSS_PROP_ANNOTATION_RE = /@(?:cssproperty|cssprop|prop)\b/;
|
|
|
3898
3898
|
* than describing the node below its comment.
|
|
3899
3899
|
*/
|
|
3900
3900
|
const CSS_ANNOTATION_TAG_RE = /@(?:component|cssproperty|cssprop|prop|attr|slot)\b/;
|
|
3901
|
+
const INTERNAL_TAG_RE = /@internal\b/;
|
|
3902
|
+
/**
|
|
3903
|
+
* Whether a comment marks the node immediately following it as internal - excluded from docs,
|
|
3904
|
+
* matching `@internal` on component members.
|
|
3905
|
+
* @param commentText a postcss `Comment` node's `.text`
|
|
3906
|
+
* @returns `true` if the comment is a JSDoc-style comment holding an `@internal` tag
|
|
3907
|
+
*/
|
|
3908
|
+
const isInternalDocComment = (commentText) => isJsDocComment(commentText) && INTERNAL_TAG_RE.test(commentText);
|
|
3901
3909
|
/**
|
|
3902
3910
|
* Whether a comment describes the node immediately following it (a declaration, rule or
|
|
3903
|
-
* at-rule). A comment holding annotation tags documents the things it names instead
|
|
3911
|
+
* at-rule). A comment holding annotation tags documents the things it names instead, and an
|
|
3912
|
+
* `@internal` comment hides the node.
|
|
3904
3913
|
* @param commentText a postcss `Comment` node's `.text`
|
|
3905
3914
|
* @returns `true` if the comment is a JSDoc-style description of the next node
|
|
3906
3915
|
*/
|
|
3907
|
-
const isNodeDocComment = (commentText) => isJsDocComment(commentText) && !CSS_ANNOTATION_TAG_RE.test(commentText);
|
|
3916
|
+
const isNodeDocComment = (commentText) => isJsDocComment(commentText) && !CSS_ANNOTATION_TAG_RE.test(commentText) && !INTERNAL_TAG_RE.test(commentText);
|
|
3908
3917
|
/**
|
|
3909
3918
|
* Strip the leading `*`/`!` marker and per-line `*` prefixes, returning trimmed lines.
|
|
3910
3919
|
* @param commentText a postcss `Comment` node's `.text`
|
|
@@ -4031,8 +4040,9 @@ function parseScopedAndNativeStyleDocs(styleDocs, styleText, mode, tag, encapsul
|
|
|
4031
4040
|
root.walkAtRules("property", (node) => {
|
|
4032
4041
|
const propName = node.params.trim();
|
|
4033
4042
|
if (!propName.startsWith("--")) return;
|
|
4034
|
-
const { syntax, initialValue } = parsePropertyAtRuleDescriptors(node);
|
|
4035
4043
|
const prev = node.prev();
|
|
4044
|
+
const isInternal = prev?.type === "comment" && isInternalDocComment(prev.text);
|
|
4045
|
+
const { syntax, initialValue } = parsePropertyAtRuleDescriptors(node);
|
|
4036
4046
|
const docs = prev && prev.type === "comment" && isNodeDocComment(prev.text) ? normalizeJsDocText(prev.text) : "";
|
|
4037
4047
|
const existing = styleDocs.find((styleDoc) => styleDoc.name === propName);
|
|
4038
4048
|
if (existing) {
|
|
@@ -4041,6 +4051,7 @@ function parseScopedAndNativeStyleDocs(styleDocs, styleText, mode, tag, encapsul
|
|
|
4041
4051
|
if (initialValue) existing.default ??= initialValue;
|
|
4042
4052
|
return;
|
|
4043
4053
|
}
|
|
4054
|
+
if (isInternal) return;
|
|
4044
4055
|
styleDocs.push({
|
|
4045
4056
|
name: propName,
|
|
4046
4057
|
docs,
|
|
@@ -16276,8 +16287,27 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
16276
16287
|
if (tsCompilerOptions.jsx != null && !isAutomaticRuntime && !isString$1(tsCompilerOptions.jsxFragmentFactory)) tsCompilerOptions.jsxFragmentFactory = "Fragment";
|
|
16277
16288
|
if (tsCompilerOptions.paths && !isString$1(tsCompilerOptions.baseUrl)) tsCompilerOptions.baseUrl = ".";
|
|
16278
16289
|
const sourceFile = ts$1.createSourceFile(sourceFilePath, input, tsCompilerOptions.target);
|
|
16279
|
-
const
|
|
16280
|
-
|
|
16290
|
+
const importedSources = /* @__PURE__ */ new Map();
|
|
16291
|
+
const resolveImport = input.includes("resolveVar(") ? transformOpts.resolveImport : void 0;
|
|
16292
|
+
const resolveViaCallback = (specifier, containingFile) => {
|
|
16293
|
+
let resolved = null;
|
|
16294
|
+
try {
|
|
16295
|
+
resolved = resolveImport(specifier, containingFile, { kind: "type-info" });
|
|
16296
|
+
} catch {}
|
|
16297
|
+
if (!resolved) return void 0;
|
|
16298
|
+
const extension = getResolvedExtension(resolved.path);
|
|
16299
|
+
if (!extension) return void 0;
|
|
16300
|
+
const resolvedFileName = normalizePath(resolved.path.split("?")[0]);
|
|
16301
|
+
if (resolvedFileName !== normalizePath(sourceFilePath) && !importedSources.has(resolvedFileName)) importedSources.set(resolvedFileName, ts$1.createSourceFile(resolvedFileName, resolved.code, tsCompilerOptions.target, true));
|
|
16302
|
+
return {
|
|
16303
|
+
resolvedFileName,
|
|
16304
|
+
extension,
|
|
16305
|
+
isExternalLibraryImport: false
|
|
16306
|
+
};
|
|
16307
|
+
};
|
|
16308
|
+
if (resolveImport) tsCompilerOptions.noResolve = false;
|
|
16309
|
+
const compilerHost = {
|
|
16310
|
+
getSourceFile: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath) ? sourceFile : importedSources.get(normalizePath(fileName)),
|
|
16281
16311
|
writeFile: (name, text) => {
|
|
16282
16312
|
if (name.endsWith(".js.map") || name.endsWith(".mjs.map")) results.map = text;
|
|
16283
16313
|
else if (name.endsWith(".js") || name.endsWith(".mjs")) results.code = text;
|
|
@@ -16287,11 +16317,13 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
16287
16317
|
getCanonicalFileName: (fileName) => fileName,
|
|
16288
16318
|
getCurrentDirectory: () => transformOpts.currentDirectory || (typeof process !== "undefined" ? process.cwd() : "/"),
|
|
16289
16319
|
getNewLine: () => ts$1.sys && ts$1.sys.newLine || "\n",
|
|
16290
|
-
fileExists: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath),
|
|
16320
|
+
fileExists: (fileName) => normalizePath(fileName) === normalizePath(sourceFilePath) || importedSources.has(normalizePath(fileName)),
|
|
16291
16321
|
readFile: () => "",
|
|
16292
16322
|
directoryExists: () => true,
|
|
16293
|
-
getDirectories: () => []
|
|
16294
|
-
|
|
16323
|
+
getDirectories: () => [],
|
|
16324
|
+
...resolveImport ? { resolveModuleNameLiterals: (moduleLiterals, containingFile) => moduleLiterals.map((literal) => ({ resolvedModule: resolveViaCallback(literal.text, containingFile) })) } : {}
|
|
16325
|
+
};
|
|
16326
|
+
const program = ts$1.createProgram([sourceFilePath], tsCompilerOptions, compilerHost);
|
|
16295
16327
|
const typeChecker = program.getTypeChecker();
|
|
16296
16328
|
const transformers = {
|
|
16297
16329
|
before: [
|
|
@@ -16308,18 +16340,36 @@ const transpileModule = (config, input, transformOpts) => {
|
|
|
16308
16340
|
}
|
|
16309
16341
|
if (transformOpts.componentExport === "customelement" || transformOpts.componentExport === "module") transformers.after.push(nativeComponentTransform(compilerCtx, transformOpts, buildCtx));
|
|
16310
16342
|
else transformers.after.push(lazyComponentTransform(compilerCtx, transformOpts, buildCtx));
|
|
16311
|
-
program.emit(
|
|
16343
|
+
program.emit(sourceFile, void 0, void 0, false, transformers);
|
|
16312
16344
|
if (transformOpts.buildOverrides && results.code) {
|
|
16313
16345
|
const mutations = Object.entries(transformOpts.buildOverrides).filter(([, v]) => v !== void 0).map(([k, v]) => `__stencilBUILD.${k}=${v};`).join("");
|
|
16314
16346
|
if (mutations) results.code = `import{BUILD as __stencilBUILD}from"${STENCIL_APP_DATA_ID}";\n${mutations}\n` + results.code;
|
|
16315
16347
|
}
|
|
16316
|
-
const tsDiagnostics = [...program.getSyntacticDiagnostics()];
|
|
16348
|
+
const tsDiagnostics = [...program.getSyntacticDiagnostics(sourceFile)];
|
|
16317
16349
|
if (config.validateTypes) tsDiagnostics.push(...program.getOptionsDiagnostics());
|
|
16318
16350
|
buildCtx.diagnostics.push(...loadTypeScriptDiagnostics(tsDiagnostics));
|
|
16319
16351
|
results.diagnostics.push(...buildCtx.diagnostics);
|
|
16320
16352
|
results.moduleFile = compilerCtx.moduleMap.get(results.sourceFilePath);
|
|
16321
16353
|
return results;
|
|
16322
16354
|
};
|
|
16355
|
+
/**
|
|
16356
|
+
* Maps a `resolveImport` result path to the TypeScript extension the program should parse it
|
|
16357
|
+
* as. Only TypeScript sources are taken - `noLib`/no `allowJs` means anything else would be
|
|
16358
|
+
* dropped by the program anyway, so it stays unresolved exactly as it did before.
|
|
16359
|
+
*
|
|
16360
|
+
* @param path the resolved path returned by the `resolveImport` callback
|
|
16361
|
+
* @returns the matching `ts.Extension`, or `undefined` if the file can't add type info
|
|
16362
|
+
*/
|
|
16363
|
+
const getResolvedExtension = (path) => {
|
|
16364
|
+
const bare = path.split("?")[0];
|
|
16365
|
+
if (bare.endsWith(".d.ts")) return ts$1.Extension.Dts;
|
|
16366
|
+
if (bare.endsWith(".d.mts")) return ts$1.Extension.Dmts;
|
|
16367
|
+
if (bare.endsWith(".d.cts")) return ts$1.Extension.Dcts;
|
|
16368
|
+
if (bare.endsWith(".tsx")) return ts$1.Extension.Tsx;
|
|
16369
|
+
if (bare.endsWith(".mts")) return ts$1.Extension.Mts;
|
|
16370
|
+
if (bare.endsWith(".cts")) return ts$1.Extension.Cts;
|
|
16371
|
+
if (bare.endsWith(".ts")) return ts$1.Extension.Ts;
|
|
16372
|
+
};
|
|
16323
16373
|
const getScriptTargetKind = (transformOpts) => {
|
|
16324
16374
|
const target = transformOpts.target && transformOpts.target.toUpperCase();
|
|
16325
16375
|
if (isNumber$1(ts$1.ScriptTarget[target])) return ts$1.ScriptTarget[target];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CompilerFsStats, $n as
|
|
1
|
+
import { $ as CompilerFsStats, $n as WatcherCloseResults, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdOptions, Ar as FsWriteResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrDocumentOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsSlot, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsUsage, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsTypeLibrary, Et as FsWatchResults, F as Compiler, Fn as RolldownConfig, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as SystemDetails, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as SerializeDocumentOptions, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileOptions, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TransformOptions, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as ServiceWorkerConfig, Lt as LoadConfigInit, M as CliInitOptions, Mn as ResolveModuleOptions, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtOpts, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as JsonDocsValue, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RobotsTxtResults, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as ValidatedOutputTargetWww, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpOpts, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsProp, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTag, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDevServerConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as SsrFactoryOptions, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as StencilDocsConfig, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as UnvalidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as TranspileResults, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedConfig, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsEvent, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsMethodReturn, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerMainController, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocMethodParameter, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsDependencyGraph, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsCustomState, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleIdResults, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveImportContext, kr as StyleDoc, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsComponent, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocs, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOnlyResults, 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, tr as WorkerOptions, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ur as UserBuildConditionals, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsListener, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsStyle, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsPart, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethod, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SitemapXmpResults, zt as LogLevel } from "../index-BxnfbT3a.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { Plugin as Plugin$1 } from "rolldown";
|
|
4
4
|
//#region src/version.d.ts
|
|
@@ -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, 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 };
|
|
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, ResolveImportContext, 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 };
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -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-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
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-JKsb5iht.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-C59vQZNg.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
|
|
1
|
+
import { $i as COLLECTION, $r as rolldownToStencilSourceMap, Aa as WWW, Ai as shouldExcludeComponent, Bi as normalizeDiagnostics, Br as isDtsFile, Ca as STANDALONE, Ci as isOutputTargetSsrWasm, Da as TYPES, Di as isOutputTargetWww, Ea as SVG_NS, Ei as isOutputTargetTypes, Fi as catchError, Fr as addDocBlock, Gi as createOnWarnFn, Gr as parsePackageJson, Hi as augmentDiagnosticWithNode, Hr as isJsxFile, Ii as hasError, Ir as createJsVarName, Ji as formatComponentRuntimeMeta, Jr as getInlineSourceMappingUrlLinker, Ki as isRolldownError, Kr as readOnlyArrayHasStringMember, Li as hasWarning, Lr as generatePreamble, Mi as buildError, Mr as validateComponentModes, Ni as buildJsonFileError, Nr as validateComponentTag, Oa as VALID_CONFIG_OUTPUT_TARGETS, Oi as isValidConfigOutputTarget, Pi as buildWarn, Pr as ParsePackageJsonResult, Qi as CMP_FLAGS, Qr as relativizeSourceMap, Ri as shouldIgnoreError, Rr as getTextDocs, Sa as SSR_WASM, Si as isOutputTargetSsr, Ta as STYLE_EXT, Ti as isOutputTargetStats, Ui as loadTypeScriptDiagnostic, Ur as isTsFile, Vi as splitLineBreaks, Vr as isJsFile, Wi as loadTypeScriptDiagnostics, Wr as isTsxFile, Xi as stringifyRuntimeData, Xr as getSourceMappingUrlForEndOfFile, Yi as formatLazyBundleRuntimeMeta, Yr as getRolldownSourceMapOptions, Zi as ASSETS, Zr as getSourceMappingUrlLinker, _a as LISTENER_FLAGS, _i as isOutputTargetDocsReadme, aa as DIST_LAZY, ai as getComponentsDtsTypesFilePath, ba as NODE_TYPES, bi as isOutputTargetLoaderBundle, ca as DOCS_CUSTOM_ELEMENTS_MANIFEST, ci as isOutputTargetCollection, da as DOCS_VSCODE, di as isOutputTargetDistLazy, ea as COLLECTION_APP_DATA_FILE_NAME, ei as result_d_exports, fa as EVENT_FLAGS, fi as isOutputTargetDocs, ga as HTML_NS, gi as isOutputTargetDocsJson, ha as HOST_FLAGS, hi as isOutputTargetDocsCustomElementsManifest, ia as DEFAULT_STYLE_MODE, ii as getComponentsDtsSrcFilePath, ja as XLINK_NS, ji as TASK_CANCELED_MSG, jr as ModeValidationError, ka as WATCH_FLAGS, ki as relativeImport, la as DOCS_JSON, li as isOutputTargetCopy, ma as GLOBAL_STYLE, mi as isOutputTargetDocsCustom, na as COPY, ni as filterActiveTargets, oa as DOCS_AGENT_SKILL, oi as getComponentsFromModules, pa as GENERATED_DTS, pi as isOutputTargetDocsAgentSkill, qi as loadRolldownDiagnostics, qr as readPackageJson, ra as CUSTOM, ri as filterExcludedComponents, sa as DOCS_CUSTOM, si as isOutputTargetAssets, ta as COLLECTION_MANIFEST_FILE_NAME, ti as FilterComponentsResult, ua as DOCS_README, ui as isOutputTargetCustom, va as LOADER_BUNDLE, vi as isOutputTargetDocsVscode, wa as STATS, wi as isOutputTargetStandalone, xa as SSR, xi as isOutputTargetServerRenderer, ya as MEMBER_FLAGS, yi as isOutputTargetGlobalStyle, zi as escapeHtml, zr as hasDependency } from "../../index-BxnfbT3a.mjs";
|
|
2
2
|
//#region src/utils/byte-size.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Used to learn the size of a string in bytes.
|