vite-plugin-zephyr 0.0.0-canary.11 → 0.0.0-canary.13
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.
|
@@ -6,28 +6,18 @@ function generateRuntimePlugin(resolved_remotes) {
|
|
|
6
6
|
const runtimePlugin = {
|
|
7
7
|
name: 'zephyr-runtime-remote-resolver',
|
|
8
8
|
beforeInit: (args) => {
|
|
9
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: beforeInit called!');
|
|
10
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: args.userOptions.remotes:', args.userOptions.remotes);
|
|
11
9
|
const resolvedRemoteMap = JSON.parse('__REMOTE_MAP__');
|
|
12
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: resolvedRemoteMap:', resolvedRemoteMap);
|
|
13
10
|
const _windows = typeof window !== 'undefined' ? window : globalThis;
|
|
14
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: _windows:', _windows);
|
|
15
11
|
args.userOptions.remotes.forEach((remote) => {
|
|
16
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: Processing remote:', remote.name, 'original remote:', remote);
|
|
17
12
|
const resolvedRemote = resolvedRemoteMap[remote.name];
|
|
18
13
|
if (!resolvedRemote) {
|
|
19
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: No resolved remote found for:', remote.name);
|
|
20
14
|
return;
|
|
21
15
|
}
|
|
22
16
|
const sessionEdgeURL = _windows.sessionStorage.getItem(resolvedRemote.application_uid);
|
|
23
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: sessionEdgeURL for', remote.name, ':', sessionEdgeURL);
|
|
24
17
|
const urlOverwrite = sessionEdgeURL !== null && sessionEdgeURL !== void 0 ? sessionEdgeURL : resolvedRemote.remote_entry_url;
|
|
25
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: urlOverwrite for', remote.name, ':', urlOverwrite);
|
|
26
18
|
// @ts-expect-error overwriting entry if needed
|
|
27
19
|
remote.entry = urlOverwrite;
|
|
28
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: Updated remote for', remote.name, 'to:', remote);
|
|
29
20
|
});
|
|
30
|
-
console.log('🚀 ZEPHYR RUNTIME PLUGIN: Final args.userOptions.remotes:', args.userOptions.remotes);
|
|
31
21
|
return args;
|
|
32
22
|
},
|
|
33
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime_plugin.js","sourceRoot":"","sources":["../../../../src/lib/internal/mf-vite-etl/runtime_plugin.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"runtime_plugin.js","sourceRoot":"","sources":["../../../../src/lib/internal/mf-vite-etl/runtime_plugin.ts"],"names":[],"mappings":";;AAGA,sDAqCC;AArCD,SAAgB,qBAAqB,CAAC,gBAAwC;IAC5E,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CACxD,CAAC;IAEF,MAAM,aAAa,GAA4B;QAC7C,IAAI,EAAE,gCAAgC;QACtC,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE;YACnB,MAAM,iBAAiB,GACrB,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAE/B,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC;YAErE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBAC1C,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACtD,IAAI,CAAC,cAAc,EAAE,CAAC;oBACpB,OAAO;gBACT,CAAC;gBAED,MAAM,cAAc,GAAG,QAAQ,CAAC,cA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zephyr",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.13",
|
|
4
4
|
"description": "Vite plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"json5": "2.2.3",
|
|
25
25
|
"rollup": "^4.36.0",
|
|
26
26
|
"vite": "^7.1.10",
|
|
27
|
-
"zephyr-agent": "0.0.0-canary.
|
|
27
|
+
"zephyr-agent": "0.0.0-canary.13"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/is-ci": "3.0.4",
|