@arcgis/lumina-compiler 4.33.0-next.136 → 4.33.0-next.138
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/index.js +829 -797
- package/dist/jsxToLitHtml/imports.d.ts +0 -1
- package/dist/plugins/buildCdn.d.ts +2 -6
- package/dist/publicTypes.d.ts +12 -0
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
import { CompilerContext } from '../context';
|
|
3
|
+
import { CdnChunk } from '../publicTypes';
|
|
3
4
|
/**
|
|
4
5
|
* Restricted due to collisions with Lumina's dist/ folder names or
|
|
5
6
|
* Stencil's dist/ folder names
|
|
@@ -14,11 +15,6 @@ export declare const globalCssName = "main";
|
|
|
14
15
|
* are assumed to be defined in the environment separately)
|
|
15
16
|
*/
|
|
16
17
|
export declare function buildCdn(context: CompilerContext): Plugin | undefined;
|
|
17
|
-
type Chunk = {
|
|
18
|
-
code: string;
|
|
19
|
-
isAsync: boolean | undefined;
|
|
20
|
-
oldSingleExportName: string | undefined;
|
|
21
|
-
};
|
|
22
18
|
export declare function buildLoaderCode(runtimeVariableName: string, customEntrypoints: {
|
|
23
19
|
in: string;
|
|
24
20
|
out: string;
|
|
@@ -68,7 +64,7 @@ export declare function buildLoaderCode(runtimeVariableName: string, customEntry
|
|
|
68
64
|
* );
|
|
69
65
|
* ```
|
|
70
66
|
*/
|
|
71
|
-
declare function transformChunk(chunk:
|
|
67
|
+
declare function transformChunk(chunk: CdnChunk, chunks: Map<string, CdnChunk>): void;
|
|
72
68
|
export declare const exportsForTests: {
|
|
73
69
|
transformChunk: typeof transformChunk;
|
|
74
70
|
};
|
package/dist/publicTypes.d.ts
CHANGED
|
@@ -148,6 +148,18 @@ export type BuildCdnOptions = {
|
|
|
148
148
|
* @see https://esbuild.github.io/api/#overview
|
|
149
149
|
*/
|
|
150
150
|
readonly esbuildOptions?: Parameters<typeof esbuildBuild>[0];
|
|
151
|
+
/**
|
|
152
|
+
* A callback for mutating CDN chunks before they are written to disk.
|
|
153
|
+
* This callback is for advanced use cases only. The build output may change
|
|
154
|
+
* between Lumina versions without prior notice. Using this callback may
|
|
155
|
+
* corrupt the CDN source map if it is enabled.
|
|
156
|
+
*/
|
|
157
|
+
readonly transformer?: (chunks: Map<string, CdnChunk>, context: CompilerContext) => void;
|
|
158
|
+
};
|
|
159
|
+
export type CdnChunk = {
|
|
160
|
+
code: string;
|
|
161
|
+
isAsync: boolean | undefined;
|
|
162
|
+
oldSingleExportName: string | undefined;
|
|
151
163
|
};
|
|
152
164
|
/**
|
|
153
165
|
* Generic type for the different kinds of wrappers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.138",
|
|
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.33.0-next.
|
|
22
|
-
"@arcgis/components-build-utils": "4.33.0-next.
|
|
23
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
21
|
+
"@arcgis/api-extractor": "4.33.0-next.138",
|
|
22
|
+
"@arcgis/components-build-utils": "4.33.0-next.138",
|
|
23
|
+
"@arcgis/components-utils": "4.33.0-next.138",
|
|
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.33.0-next.
|
|
40
|
+
"@arcgis/lumina": "~4.33.0-next.138"
|
|
41
41
|
}
|
|
42
42
|
}
|