@arcgis/lumina-compiler 4.34.0-next.22 → 4.34.0-next.24
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/entrypoints/resolveTagName.d.ts +1 -1
- package/dist/index.js +80 -75
- package/dist/publicTypes.d.ts +18 -0
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@ import { CompilerContext } from '../context';
|
|
|
5
5
|
* Automatically add imports as appropriate for all referenced internally defined
|
|
6
6
|
* and externally defined custom elements
|
|
7
7
|
*/
|
|
8
|
-
export declare function resolveTagName(context: CompilerContext, tagName: string, fileName: string): ModulePath;
|
|
8
|
+
export declare function resolveTagName(context: CompilerContext, tagName: string, fileName: string): ModulePath | undefined;
|
|
9
9
|
export declare function modulePathToString(resolvedPath: ModulePath, distRelativeCwd: string): string;
|
|
10
10
|
export declare function getLocalDefinedComponentsFromApiJson(context: Pick<CompilerContext, "_localDefinedComponents" | "privateApiJson">): Readonly<Record<string, ResolvedDependencyComponent>>;
|
|
11
11
|
export declare const exportsForTests: {
|
package/dist/index.js
CHANGED
|
@@ -2685,27 +2685,27 @@ ${c}.componentOnReady().then(() => {
|
|
|
2685
2685
|
} : lo(this.context, d, f, this.file);
|
|
2686
2686
|
const y = o.isPropertyDeclaration(t) && t.type !== void 0 && t.initializer !== void 0 && o.isPropertyAccessExpression(t.initializer) && o.isPropertyAccessExpression(t.initializer.expression) && t.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(t.initializer.expression.name) && o.isIdentifier(t.initializer.name);
|
|
2687
2687
|
if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || y) {
|
|
2688
|
-
const h = t.initializer, v = s.getSymbolAtLocation(h), S = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v,
|
|
2688
|
+
const h = t.initializer, v = s.getSymbolAtLocation(h), S = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, T = S?.getDeclarations() ?? [];
|
|
2689
2689
|
if (S !== void 0) {
|
|
2690
2690
|
const $ = Bt(s, S);
|
|
2691
2691
|
if ($.docsTags.length > 0) {
|
|
2692
2692
|
$.docsTags = $.docsTags.filter(
|
|
2693
|
-
(
|
|
2693
|
+
(E) => !c.has(E.name) || vs.has(E.name)
|
|
2694
2694
|
);
|
|
2695
2695
|
const b = i.description;
|
|
2696
|
-
ue(t.name, s, i, $), $.docsTags.forEach((
|
|
2697
|
-
c.add(
|
|
2696
|
+
ue(t.name, s, i, $), $.docsTags.forEach((E) => {
|
|
2697
|
+
c.add(E.name);
|
|
2698
2698
|
}), i.description = b ?? i.description;
|
|
2699
2699
|
} else
|
|
2700
2700
|
i.description ||= $.description;
|
|
2701
2701
|
}
|
|
2702
|
-
let x,
|
|
2703
|
-
|
|
2704
|
-
if (x ??= o.isGetAccessor($) ? $ : void 0,
|
|
2702
|
+
let x, L;
|
|
2703
|
+
T.forEach(($) => {
|
|
2704
|
+
if (x ??= o.isGetAccessor($) ? $ : void 0, L ??= o.isSetAccessor($) ? $ : void 0, !("initializer" in $))
|
|
2705
2705
|
return;
|
|
2706
2706
|
const b = $;
|
|
2707
|
-
l ||= b.modifiers?.some((
|
|
2708
|
-
}), y && x !== void 0 &&
|
|
2707
|
+
l ||= b.modifiers?.some((E) => E.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, Wt(b, i, b.getSourceFile());
|
|
2708
|
+
}), y && x !== void 0 && L !== void 0 && x.type?.getText() !== L.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${h.getText(this.file)}` });
|
|
2709
2709
|
}
|
|
2710
2710
|
if (l && (i.readonly = !0, n || (i.docsOnlyReadonly = !0)), i.type.values && i.type.values.length > 0 && i.type.values?.every((h) => h.type === "boolean") && (i.default ? m && this.context.viteCommand === "build" && i.deprecated === void 0 && (Je.loggedBooleanWarning || this.context.logLintWarning(
|
|
2711
2711
|
`Boolean properties should default to "false". Found default value "true" in ${this.apiComponent.name}.${i.name}. See https://qawebgis.esri.com/components/lumina/properties#boolean-properties`
|
|
@@ -3077,11 +3077,11 @@ async function bn(e, t) {
|
|
|
3077
3077
|
if (a ? await U(c) : !1) {
|
|
3078
3078
|
const y = await J(c, "utf8"), g = ya(y, "bootstrapLazy("), h = y.indexOf(", options", g), v = y.slice(g, h), S = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
|
|
3079
3079
|
try {
|
|
3080
|
-
const
|
|
3080
|
+
const T = JSON.parse(S), x = va(T, { packageName: e, getImportPath: r });
|
|
3081
3081
|
return { packageName: e, type: "stencil", components: x };
|
|
3082
|
-
} catch (
|
|
3082
|
+
} catch (T) {
|
|
3083
3083
|
C.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
|
|
3084
|
-
Error: ${String(
|
|
3084
|
+
Error: ${String(T)}`);
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
const d = fi(n.customElements);
|
|
@@ -3635,13 +3635,13 @@ function Ha(e, t) {
|
|
|
3635
3635
|
const v = c.statements.at(-1);
|
|
3636
3636
|
if (!(v && o.isReturnStatement(v) && v.expression))
|
|
3637
3637
|
return t;
|
|
3638
|
-
const
|
|
3639
|
-
if (!Si(
|
|
3638
|
+
const T = Se(v.expression);
|
|
3639
|
+
if (!Si(T))
|
|
3640
3640
|
return t;
|
|
3641
3641
|
const x = c.statements.slice(0, -1);
|
|
3642
3642
|
if (x.some(An))
|
|
3643
3643
|
return t;
|
|
3644
|
-
l = x.length === 0, d =
|
|
3644
|
+
l = x.length === 0, d = T;
|
|
3645
3645
|
}
|
|
3646
3646
|
const p = o.isJsxElement(d) ? d.openingElement : d, m = Dn(p);
|
|
3647
3647
|
if (m === -1)
|
|
@@ -3840,22 +3840,22 @@ function Nn(e, t) {
|
|
|
3840
3840
|
let m;
|
|
3841
3841
|
const f = [];
|
|
3842
3842
|
let y = !1;
|
|
3843
|
-
const g = s.attributes.properties.flatMap((
|
|
3844
|
-
if (o.isJsxSpreadAttribute(
|
|
3843
|
+
const g = s.attributes.properties.flatMap((L) => {
|
|
3844
|
+
if (o.isJsxSpreadAttribute(L))
|
|
3845
3845
|
throw Error(
|
|
3846
3846
|
`JSX spread attribute syntax is not supported. See alternatives: https://qawebgis.esri.com/components/lumina/jsx#spread-attributes
|
|
3847
|
-
Found ${
|
|
3847
|
+
Found ${L.getText(e.sourceFile)}`
|
|
3848
3848
|
);
|
|
3849
|
-
const { name: $, initializer: b } =
|
|
3849
|
+
const { name: $, initializer: b } = L;
|
|
3850
3850
|
if (o.isJsxNamespacedName($))
|
|
3851
3851
|
throw Error(`JSX namespaced attributes are not supported. Found ${$.getText(e.sourceFile)}`);
|
|
3852
|
-
const
|
|
3853
|
-
p?.delete(
|
|
3854
|
-
const D = La[N](e,
|
|
3852
|
+
const E = $.text, I = ja(b), N = I?.propType ?? Ra(E, b, c);
|
|
3853
|
+
p?.delete(E);
|
|
3854
|
+
const D = La[N](e, I?.initializer ?? b, E, c);
|
|
3855
3855
|
if (D.length === 0)
|
|
3856
3856
|
return [];
|
|
3857
3857
|
const M = e.compiler.shouldMinifyJsx ? [" "] : Wa(Pn($, e));
|
|
3858
|
-
return N === "key" ? (m = typeof D[0] == "object" && !Ln($, e) ? D[0] : void 0, M.some(Ja) ? M : []) : N === "directives" || N === "ref" ||
|
|
3858
|
+
return N === "key" ? (m = typeof D[0] == "object" && !Ln($, e) ? D[0] : void 0, M.some(Ja) ? M : []) : N === "directives" || N === "ref" || E === "deferLoad" ? (y ||= N === "deferLoad", f.push(
|
|
3859
3859
|
...M,
|
|
3860
3860
|
...D.flatMap(
|
|
3861
3861
|
(H, K) => typeof H == "string" || K === 0 || typeof D[K - 1] == "string" ? H : [" ", H]
|
|
@@ -3876,13 +3876,13 @@ Found ${I.getText(e.sourceFile)}`
|
|
|
3876
3876
|
throw Error(
|
|
3877
3877
|
`Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
|
|
3878
3878
|
);
|
|
3879
|
-
const S = (l === oe || l === Z) && v.parts.length === 0,
|
|
3879
|
+
const S = (l === oe || l === Z) && v.parts.length === 0, T = [
|
|
3880
3880
|
"<",
|
|
3881
3881
|
typeof c == "string" ? c : r,
|
|
3882
3882
|
...g,
|
|
3883
3883
|
S ? `${g.length === 0 ? "" : " "}/>` : ">"
|
|
3884
|
-
], x = h || S ?
|
|
3885
|
-
...
|
|
3884
|
+
], x = h || S ? T : [
|
|
3885
|
+
...T,
|
|
3886
3886
|
/**
|
|
3887
3887
|
* If parent was an HTML element (e.g. `<svg>`), but children are SVG
|
|
3888
3888
|
* fragments (e.g. `<circle />`, then wrap the children in their own
|
|
@@ -4152,6 +4152,8 @@ function lc(e) {
|
|
|
4152
4152
|
function dc(e, t, i) {
|
|
4153
4153
|
const n = Sn()[t] ?? Kn(e)[t];
|
|
4154
4154
|
if (n === void 0) {
|
|
4155
|
+
if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
|
|
4156
|
+
return;
|
|
4155
4157
|
const s = Y(i);
|
|
4156
4158
|
throw Error(
|
|
4157
4159
|
w(
|
|
@@ -4758,10 +4760,10 @@ async function jc(e, t, i) {
|
|
|
4758
4760
|
await z(u.dirname(g), { recursive: !0 });
|
|
4759
4761
|
const h = await J(y, "utf-8"), v = ee(u.dirname(f), `build/${i}`), S = `${l}<script type="module" src="${v}"><\/script>
|
|
4760
4762
|
`;
|
|
4761
|
-
let
|
|
4762
|
-
if (
|
|
4763
|
+
let T = h.indexOf("<style>");
|
|
4764
|
+
if (T === -1 && (T = h.indexOf("</head>")), T === -1)
|
|
4763
4765
|
throw Error(w("@arcgis/lumina:buildWebApp", `Failed to find <head> or <style> tag in ${y}`));
|
|
4764
|
-
const x = h.slice(0,
|
|
4766
|
+
const x = h.slice(0, T) + S + h.slice(T);
|
|
4765
4767
|
await F(g, x, "utf-8");
|
|
4766
4768
|
})
|
|
4767
4769
|
);
|
|
@@ -4987,24 +4989,24 @@ function Un(e, t) {
|
|
|
4987
4989
|
let c = 0;
|
|
4988
4990
|
const l = e.code.matchAll(Bc);
|
|
4989
4991
|
for (const b of l) {
|
|
4990
|
-
const [
|
|
4992
|
+
const [E, I, N, D, M] = b, H = M.startsWith(We);
|
|
4991
4993
|
if (c !== 0 && c !== b.index) {
|
|
4992
4994
|
const K = e.code.slice(c, b.index);
|
|
4993
4995
|
s.push(K), a.push([c, K.length, 0, ""]);
|
|
4994
4996
|
}
|
|
4995
|
-
if (c = b.index +
|
|
4996
|
-
a.push([b.index,
|
|
4997
|
+
if (c = b.index + E.length, H)
|
|
4998
|
+
a.push([b.index, E.length, 0, ""]), n.push(`"${qn(M.slice(We.length))}"`), i.push(I?.replaceAll(" as ", ":") ?? N ?? D ?? "");
|
|
4997
4999
|
else {
|
|
4998
5000
|
const K = zn(M, t), G = K?.isAsync === !0;
|
|
4999
|
-
if (
|
|
5001
|
+
if (I !== void 0) {
|
|
5000
5002
|
const xe = [];
|
|
5001
|
-
for (const Ye of
|
|
5003
|
+
for (const Ye of I.slice(1, -1).split(",")) {
|
|
5002
5004
|
const [Ot, Jt = Ot] = Ye.split(" as ");
|
|
5003
5005
|
G || r.add(Jt), xe.push(`${Ot}:${Jt}`);
|
|
5004
5006
|
}
|
|
5005
5007
|
if (G) {
|
|
5006
5008
|
const Ye = K.oldSingleExportName === void 0 ? `{${xe.join(",")}}` : xe[0].split(":")[1];
|
|
5007
|
-
a.push([b.index + 6, 0,
|
|
5009
|
+
a.push([b.index + 6, 0, I.length, Ye]);
|
|
5008
5010
|
}
|
|
5009
5011
|
} else if (N === void 0 && D === void 0)
|
|
5010
5012
|
G && a.push([b.index + 6, 0, 0, ""]);
|
|
@@ -5013,7 +5015,7 @@ function Un(e, t) {
|
|
|
5013
5015
|
throw Error(
|
|
5014
5016
|
w(
|
|
5015
5017
|
_,
|
|
5016
|
-
`Expected local import specifiers to use only named or side-effect import syntax. Found ${
|
|
5018
|
+
`Expected local import specifiers to use only named or side-effect import syntax. Found ${E}`
|
|
5017
5019
|
)
|
|
5018
5020
|
);
|
|
5019
5021
|
r.add(D ?? N);
|
|
@@ -5027,32 +5029,32 @@ function Un(e, t) {
|
|
|
5027
5029
|
const d = Hc(r);
|
|
5028
5030
|
let p = e.code.slice(0, c);
|
|
5029
5031
|
for (let b = a.length - 1; b >= 0; b--) {
|
|
5030
|
-
const [
|
|
5031
|
-
let M =
|
|
5032
|
-
if (
|
|
5032
|
+
const [E, I, N, D] = a[b];
|
|
5033
|
+
let M = I, H = "";
|
|
5034
|
+
if (I === 0) {
|
|
5033
5035
|
const G = d();
|
|
5034
5036
|
n.push(G), H = ` ${G} from`, D !== "" ? (M = N + 4, i.push(D)) : i.push("");
|
|
5035
5037
|
}
|
|
5036
|
-
p = p.slice(0,
|
|
5038
|
+
p = p.slice(0, E) + H + p.slice(E + M);
|
|
5037
5039
|
}
|
|
5038
5040
|
const m = Wc.exec(e.code), f = m?.index ?? e.code.length;
|
|
5039
5041
|
let y = "";
|
|
5040
5042
|
if (m !== null) {
|
|
5041
5043
|
const b = m[1].split(",");
|
|
5042
5044
|
if (b.length > 1)
|
|
5043
|
-
y = `return{${b.map((
|
|
5044
|
-
const [
|
|
5045
|
-
return `${N}:${
|
|
5045
|
+
y = `return{${b.map((E) => {
|
|
5046
|
+
const [I, N = I] = E.split(" as ");
|
|
5047
|
+
return `${N}:${I}`;
|
|
5046
5048
|
}).join(",")}}`;
|
|
5047
5049
|
else {
|
|
5048
|
-
const [
|
|
5049
|
-
e.oldSingleExportName =
|
|
5050
|
+
const [E, I = E] = b[0].split(" as ");
|
|
5051
|
+
e.oldSingleExportName = I, y = `return ${E}`;
|
|
5050
5052
|
}
|
|
5051
5053
|
}
|
|
5052
|
-
const g = i.findLastIndex((b) => b.length > 0), h = i.slice(0, g + 1).join(","), S = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`,
|
|
5053
|
-
let
|
|
5054
|
-
|
|
5055
|
-
const $ = `${p}${S}${
|
|
5054
|
+
const g = i.findLastIndex((b) => b.length > 0), h = i.slice(0, g + 1).join(","), S = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`, T = n.join(","), x = `${y}},${T})`;
|
|
5055
|
+
let L = e.code.slice(c, f);
|
|
5056
|
+
L = `${s.join("")}${L}`, L = Pi(L, t);
|
|
5057
|
+
const $ = `${p}${S}${L}${x}`;
|
|
5056
5058
|
e.code = $;
|
|
5057
5059
|
}
|
|
5058
5060
|
const Bc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Wc = /export\{([^}]+)\};\n$/u, We = "@arcgis/core/";
|
|
@@ -5339,7 +5341,7 @@ function il(e) {
|
|
|
5339
5341
|
(S) => S.length > 0 ? m() : void 0
|
|
5340
5342
|
) : void 0
|
|
5341
5343
|
), g.watcher.on("unlinkDir", (v) => {
|
|
5342
|
-
e.componentFiles.some((
|
|
5344
|
+
e.componentFiles.some((T) => T.startsWith(v)) && m();
|
|
5343
5345
|
});
|
|
5344
5346
|
function h(v) {
|
|
5345
5347
|
he(v, e.dir.srcComponents) && m();
|
|
@@ -5364,29 +5366,29 @@ function il(e) {
|
|
|
5364
5366
|
if (x === void 0)
|
|
5365
5367
|
return;
|
|
5366
5368
|
if (!(x.text === v)) {
|
|
5367
|
-
let
|
|
5369
|
+
let E;
|
|
5368
5370
|
await Promise.race([
|
|
5369
5371
|
e._typeScriptReload.promise,
|
|
5370
|
-
new Promise((
|
|
5371
|
-
|
|
5372
|
+
new Promise((I) => {
|
|
5373
|
+
E = setTimeout(() => {
|
|
5372
5374
|
C.info(
|
|
5373
5375
|
l,
|
|
5374
5376
|
"Timed out waiting for TypeScript to finish type-checking. This may be a bug"
|
|
5375
|
-
),
|
|
5377
|
+
), I(void 0);
|
|
5376
5378
|
}, 1e4);
|
|
5377
5379
|
})
|
|
5378
|
-
]), clearTimeout(
|
|
5380
|
+
]), clearTimeout(E);
|
|
5379
5381
|
}
|
|
5380
5382
|
}
|
|
5381
5383
|
if (!he(g, e.dir.srcComponents))
|
|
5382
5384
|
return;
|
|
5383
5385
|
v ??= await h();
|
|
5384
|
-
const
|
|
5385
|
-
if (
|
|
5386
|
+
const T = ia(e, g, v);
|
|
5387
|
+
if (T === void 0)
|
|
5386
5388
|
return !1;
|
|
5387
|
-
for (const x of
|
|
5388
|
-
const
|
|
5389
|
-
e.server.ws.send({ type: "custom", event: "component-meta-update", data:
|
|
5389
|
+
for (const x of T) {
|
|
5390
|
+
const L = yn(x);
|
|
5391
|
+
e.server.ws.send({ type: "custom", event: "component-meta-update", data: L });
|
|
5390
5392
|
}
|
|
5391
5393
|
return f(), !0;
|
|
5392
5394
|
}
|
|
@@ -5670,7 +5672,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5670
5672
|
...await Zr(e)
|
|
5671
5673
|
}, { loader: g, ...h } = y, v = e.environment === "development" || e.isInTest ? {
|
|
5672
5674
|
"process.env.ESRI_INTERNAL": "true"
|
|
5673
|
-
} : void 0, S = !import.meta.url.includes("node_modules"),
|
|
5675
|
+
} : void 0, S = !import.meta.url.includes("node_modules"), T = {
|
|
5674
5676
|
/**
|
|
5675
5677
|
* Dependency pre-bundling by default scouts all index.html files to find
|
|
5676
5678
|
* what dependencies are used. Since Lumina adds imports to index.html
|
|
@@ -5779,7 +5781,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5779
5781
|
*/
|
|
5780
5782
|
forceRerunTriggers: f === void 0 ? ["**/*.{ts,tsx}"] : void 0
|
|
5781
5783
|
},
|
|
5782
|
-
optimizeDeps:
|
|
5784
|
+
optimizeDeps: T,
|
|
5783
5785
|
define: v
|
|
5784
5786
|
};
|
|
5785
5787
|
}
|
|
@@ -5809,7 +5811,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
|
|
|
5809
5811
|
}
|
|
5810
5812
|
}
|
|
5811
5813
|
},
|
|
5812
|
-
optimizeDeps:
|
|
5814
|
+
optimizeDeps: T,
|
|
5813
5815
|
define: v,
|
|
5814
5816
|
test: {
|
|
5815
5817
|
/*
|
|
@@ -6042,8 +6044,8 @@ async function $l(e, t) {
|
|
|
6042
6044
|
const p = d[1], m = Ll(p), f = r.indexOf("{", d.index), y = r.indexOf("}", f), g = r.slice(0, d.index).trimEnd();
|
|
6043
6045
|
let h = "";
|
|
6044
6046
|
if (g.endsWith("*/")) {
|
|
6045
|
-
const
|
|
6046
|
-
h = g.slice(
|
|
6047
|
+
const T = g.lastIndexOf("/**");
|
|
6048
|
+
h = g.slice(T + 3, -2).trim().replaceAll(Al, "");
|
|
6047
6049
|
}
|
|
6048
6050
|
const v = r.slice(f, y).match(kl)?.[1] || m, S = Il(m);
|
|
6049
6051
|
l.push({
|
|
@@ -6344,14 +6346,17 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
|
|
|
6344
6346
|
return [];
|
|
6345
6347
|
const l = u.dirname(r), d = ge(l, e.dir.srcComponents, e), p = u.relative(e.dir.src, d);
|
|
6346
6348
|
function m(b) {
|
|
6347
|
-
const
|
|
6348
|
-
if (
|
|
6349
|
-
return
|
|
6349
|
+
const E = dc(e, b, r);
|
|
6350
|
+
if (E === void 0)
|
|
6351
|
+
return;
|
|
6352
|
+
const I = pc(E, p);
|
|
6353
|
+
if (I !== `./${p}`)
|
|
6354
|
+
return I.startsWith(".") ? `${I}/${Di}` : I;
|
|
6350
6355
|
}
|
|
6351
6356
|
const f = new Set(a), y = new Set(c), g = Array.from(f, m).filter(j), h = (b) => `import "${b}";
|
|
6352
|
-
`, v = g.map(h).join(""), S = /* @__PURE__ */ new Set(),
|
|
6353
|
-
const
|
|
6354
|
-
if (
|
|
6357
|
+
`, v = g.map(h).join(""), S = /* @__PURE__ */ new Set(), T = Array.from(y, (b) => {
|
|
6358
|
+
const E = m(b);
|
|
6359
|
+
if (E !== void 0) {
|
|
6355
6360
|
if (f.has(b)) {
|
|
6356
6361
|
C.warn(
|
|
6357
6362
|
pt,
|
|
@@ -6359,15 +6364,15 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
|
|
|
6359
6364
|
);
|
|
6360
6365
|
return;
|
|
6361
6366
|
}
|
|
6362
|
-
return S.add(h(
|
|
6367
|
+
return S.add(h(E)), `.set("${b}", () => import("${E}"))
|
|
6363
6368
|
`;
|
|
6364
6369
|
}
|
|
6365
|
-
}).filter(j), x = `${v}export * from "./${Tt}";`,
|
|
6370
|
+
}).filter(j), x = `${v}export * from "./${Tt}";`, L = Array.from(S).join("") + x, $ = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
|
|
6366
6371
|
${x}
|
|
6367
|
-
deferredLoaders${
|
|
6372
|
+
deferredLoaders${T.join("")};` : x;
|
|
6368
6373
|
return [
|
|
6369
6374
|
F(u.join(e.dir.dist, p, Di), $),
|
|
6370
|
-
F(u.join(e.dir.dist, p, Dl),
|
|
6375
|
+
F(u.join(e.dir.dist, p, Dl), L)
|
|
6371
6376
|
];
|
|
6372
6377
|
});
|
|
6373
6378
|
await Promise.all(s);
|
package/dist/publicTypes.d.ts
CHANGED
|
@@ -251,6 +251,24 @@ export type DependencyManagementOptions = Omit<RollupPluginNodeExternalsOptions,
|
|
|
251
251
|
* technical reasons.
|
|
252
252
|
*/
|
|
253
253
|
readonly externalize?: NonNullable<RollupPluginNodeExternalsOptions>["include"];
|
|
254
|
+
/**
|
|
255
|
+
* By default, Lumina will error if it encounters usage of an unknown custom
|
|
256
|
+
* element. This setting allows to silence such error if you are manually
|
|
257
|
+
* importing some custom elements.
|
|
258
|
+
*
|
|
259
|
+
* > [!IMPORTANT]
|
|
260
|
+
* >
|
|
261
|
+
* > This option is an escape hatch. Build-time optimizations are not applied
|
|
262
|
+
* > to such custom elements. Additionally, you assume the responsibility for
|
|
263
|
+
* > correctly loading the web component in lazy, non-lazy and CDN builds.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```ts
|
|
267
|
+
* // Silence errors for unknown custom elements that start with "fluent-"
|
|
268
|
+
* silenceUnknownJsxElementUsage: (tagName) => tagName.startsWith("fluent-")
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
readonly silenceUnknownJsxElementUsage?: (tagName: string, fileName: string, context: CompilerContext) => boolean;
|
|
254
272
|
};
|
|
255
273
|
export type ServeEnvironmentOptions = {
|
|
256
274
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/api-extractor": "4.34.0-next.
|
|
22
|
-
"@arcgis/components-build-utils": "4.34.0-next.
|
|
23
|
-
"@arcgis/components-utils": "4.34.0-next.
|
|
21
|
+
"@arcgis/api-extractor": "4.34.0-next.24",
|
|
22
|
+
"@arcgis/components-build-utils": "4.34.0-next.24",
|
|
23
|
+
"@arcgis/components-utils": "4.34.0-next.24",
|
|
24
24
|
"chalk": "^5.3.0",
|
|
25
25
|
"esbuild": "^0.25.4",
|
|
26
26
|
"glob": "^11.0.0",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"vitest-fail-on-console": "^0.7.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@arcgis/lumina": "~4.34.0-next.
|
|
40
|
+
"@arcgis/lumina": "~4.34.0-next.24"
|
|
41
41
|
}
|
|
42
42
|
}
|