@arcgis/lumina-compiler 4.34.0-next.20 → 4.34.0-next.22

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.
Files changed (2) hide show
  1. package/dist/index.js +34 -15
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -5716,19 +5716,21 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5716
5716
  * used by a package from outside the monorepo (eg @arcgis/lumina is used
5717
5717
  * inside the package, and by Calcite outside the package).
5718
5718
  */
5719
- exclude: S ? [
5720
- "@arcgis/lumina",
5721
- "@arcgis/components-controllers",
5722
- "@arcgis/components-utils",
5723
- "@arcgis/core-adapter",
5724
- "@arcgis/map-components",
5725
- "@arcgis/common-components",
5726
- "@arcgis/charts-components",
5727
- "@arcgis/embeddable-components",
5728
- "@arcgis/imagery-components",
5729
- "@arcgis/map-config-components",
5730
- "@arcgis/portal-components",
5731
- // By excluding Lumina, we also disable discovery of packages
5719
+ exclude: [
5720
+ ...S ? [
5721
+ "@arcgis/lumina",
5722
+ "@arcgis/components-controllers",
5723
+ "@arcgis/components-utils",
5724
+ "@arcgis/core-adapter",
5725
+ "@arcgis/map-components",
5726
+ "@arcgis/common-components",
5727
+ "@arcgis/charts-components",
5728
+ "@arcgis/embeddable-components",
5729
+ "@arcgis/imagery-components",
5730
+ "@arcgis/map-config-components",
5731
+ "@arcgis/portal-components"
5732
+ ] : [],
5733
+ // By excluding Lumina above, we also disable discovery of packages
5732
5734
  // used by it (Lit), which are then discovered at runtime and cause
5733
5735
  // dev-server reload. We could manually include all Lit packages,
5734
5736
  // but because Lit has so many entry points and barrel files,
@@ -5736,6 +5738,12 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5736
5738
  // rather than decrease them (620 vs 621)), defeating the point of
5737
5739
  // dependency optimization. Add to it that debugging is easier for
5738
5740
  // non-optimized dependencies, so we exclude it.
5741
+ //
5742
+ // For users outside the monorepo, we choose to exclude Lit for similar
5743
+ // reasons - the benefits of pre-bundling are nil. Otherwise, we would
5744
+ // have to explicitly include the Lit imports that are added dynamically
5745
+ // by the JSX to lit-html transformation
5746
+ //
5739
5747
  // Even though lit/ is a barrel package, we still need to explicitly
5740
5748
  // exclude the sub-packages to prevent them from being optimized at
5741
5749
  // runtime.
@@ -5744,7 +5752,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5744
5752
  "lit-element",
5745
5753
  "@lit/reactive-element",
5746
5754
  "@lit/context"
5747
- ] : void 0
5755
+ ]
5748
5756
  };
5749
5757
  if (typeof l.setupFiles == "string" ? l.setupFiles = [...lt, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...lt, ...l.setupFiles] : l.setupFiles = [...lt], e.isInPuppeteerTestBackEnd) {
5750
5758
  if (p?.enabled === !0)
@@ -6117,8 +6125,19 @@ class P {
6117
6125
  handler: () => {
6118
6126
  this._serverConfigured = !0;
6119
6127
  }
6128
+ },
6129
+ /**
6130
+ * Workaround for a Vite bug.
6131
+ * See https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/5414
6132
+ */
6133
+ transformIndexHtml: (s) => {
6134
+ if (this.isInStorybook && this.viteCommand === "build")
6135
+ return s.replace(
6136
+ '<script type="module" crossorigin src="@arcgis/core/applications/Components/reactiveUtils.js"><\/script>',
6137
+ ""
6138
+ );
6120
6139
  }
6121
- }, this._localDefinedComponents = void 0, this._cssImports = /* @__PURE__ */ new Map(), this._cssDocs = void 0, this.isInCi = !!process.env.CI, this._declarationTextTransformers = [], this._serverConfigured = !1, this.assetsToProvide = [], this._globalCssString = void 0, this._loadersCache = void 0, this._serveOnlyDependencies = void 0, this._customElementDependencies = {}, this._htmlElementReferencesReplacer = void 0, this._silencedRules = void 0, this._updateLuminaTsPromise = void 0, this.normalizedDocumentationUrl = "developers.arcgis.com", this.alternativeDocumentationUrl = "next.sites.afd.arcgis.com", this.options = t;
6140
+ }, this._localDefinedComponents = void 0, this._cssImports = /* @__PURE__ */ new Map(), this._cssDocs = void 0, this.isInCi = !!process.env.CI, this._declarationTextTransformers = [], this._serverConfigured = !1, this.assetsToProvide = [], this._globalCssString = void 0, this._loadersCache = void 0, this._serveOnlyDependencies = void 0, this._customElementDependencies = {}, this._htmlElementReferencesReplacer = void 0, this._silencedRules = void 0, this._updateLuminaTsPromise = void 0, this.normalizedDocumentationUrl = "developers.arcgis.com", this.alternativeDocumentationUrl = "next.gha.afd.arcgis.com", this.options = t;
6122
6141
  const i = t.documentation ?? {};
6123
6142
  this._documentationFileNames = {
6124
6143
  apiJson: i.apiJsonFileName === !1 ? void 0 : i.apiJsonFileName ? de(i.apiJsonFileName) : pe.apiJson,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.34.0-next.20",
3
+ "version": "4.34.0-next.22",
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.20",
22
- "@arcgis/components-build-utils": "4.34.0-next.20",
23
- "@arcgis/components-utils": "4.34.0-next.20",
21
+ "@arcgis/api-extractor": "4.34.0-next.22",
22
+ "@arcgis/components-build-utils": "4.34.0-next.22",
23
+ "@arcgis/components-utils": "4.34.0-next.22",
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.20"
40
+ "@arcgis/lumina": "~4.34.0-next.22"
41
41
  }
42
42
  }