vite-plugin-zephyr 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,8 @@ export interface RemoteMapExtraction {
13
13
  * Parses the provided code to extract the remotes object.
14
14
  *
15
15
  * @param code - The code containing the remotes object declaration.
16
- * @returns An object containing the remotes object and the start and end indices of the remotes object declaration in the code, or undefined if parsing fails.
16
+ * @returns An object containing the remotes object and the start and end indices of the remotes object declaration in the code, or
17
+ * undefined if parsing fails.
17
18
  */
18
19
  export declare function parseRemoteMap(code: string, id: string): RemoteMapExtraction | undefined;
19
20
  export declare function replaceProtocolAndHost(originalUrl: string, newProtocolAndHost: string): string;
@@ -10,7 +10,8 @@ const acorn_walk_1 = tslib_1.__importDefault(require("acorn-walk"));
10
10
  * Parses the provided code to extract the remotes object.
11
11
  *
12
12
  * @param code - The code containing the remotes object declaration.
13
- * @returns An object containing the remotes object and the start and end indices of the remotes object declaration in the code, or undefined if parsing fails.
13
+ * @returns An object containing the remotes object and the start and end indices of the remotes object declaration in the code, or
14
+ * undefined if parsing fails.
14
15
  */
15
16
  function parseRemoteMap(code, id) {
16
17
  if (!id.includes('localSharedImportMap')) {
@@ -1 +1 @@
1
- {"version":3,"file":"remote_map_parser.js","sourceRoot":"","sources":["../../src/lib/remote_map_parser.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,+DAA8C;AAC9C,0DAA0B;AAC1B,oEAA8B;AAe9B;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,EAAU;IAErD,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACzC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,SAAiC,CAAC;IAEtC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,6BAA6B;IAC7B,MAAM,GAAG,GAAG,eAAK,CAAC,KAAK,CAAC,IAAI,EAAE;QAC5B,WAAW,EAAE,QAAQ;QACrB,UAAU,EA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Options {
4
4
  publicDir?: string;
5
5
  dir?: string;
6
6
  }
7
- export interface RemoteObjectConfig {
8
- type?: string;
9
- name?: string;
10
- entry: string;
11
- entryGlobalName?: string;
12
- shareScope?: string;
13
- }
14
- export interface ManifestOptions {
15
- filePath?: string;
16
- disableAssetsAnalyze?: boolean;
17
- fileName?: string;
18
- }
19
- export interface ModuleFederationOptions {
20
- exposes?: Record<string, string | {
21
- import: string;
22
- }> | undefined;
23
- filename?: string;
24
- library?: any;
25
- name: string;
26
- remotes?: Record<string, string | Partial<RemoteObjectConfig>> | undefined;
27
- runtime?: any;
28
- shareScope?: string;
29
- shared?: string[] | Record<string, string | {
30
- name?: string;
31
- version?: string;
32
- shareScope?: string;
33
- singleton?: boolean;
34
- requiredVersion?: string;
35
- strictVersion?: boolean;
36
- }> | undefined;
37
- runtimePlugins?: string[];
38
- getPublicPath?: any;
39
- implementation?: any;
40
- manifest?: ManifestOptions | boolean;
41
- dev?: any;
42
- dts?: any;
43
- }
44
7
  export interface ZephyrPartialInternalOptions {
45
8
  root: string;
46
9
  outDir: string;
@@ -1,3 +1,8 @@
1
1
  import type { Plugin } from 'vite';
2
- import type { ModuleFederationOptions } from './types/zephyr-internal-options';
3
- export declare function withZephyr(_options: ModuleFederationOptions): Plugin[];
2
+ import { federation } from '@module-federation/vite';
3
+ type FederationFunction = typeof federation;
4
+ interface VitePluginZephyrOptions {
5
+ mfConfig?: Parameters<FederationFunction>[0];
6
+ }
7
+ export declare function withZephyr(_options?: VitePluginZephyrOptions): Plugin[];
8
+ export {};
@@ -10,10 +10,9 @@ const load_static_entries_1 = require("./load_static_entries");
10
10
  const remote_map_parser_1 = require("./remote_map_parser");
11
11
  const resolve_remote_dependency_1 = require("./resolve_remote_dependency");
12
12
  const vite_1 = require("@module-federation/vite");
13
- // Ensure ModuleFederationOptions extends the module's options
14
13
  function withZephyr(_options) {
15
- // @ts-expect-error Our library wants vite@5.0.3 but federation wants ^5.4.3
16
- return (0, vite_1.federation)(_options).concat(zephyrPlugin(_options));
14
+ const mfConfig = _options === null || _options === void 0 ? void 0 : _options.mfConfig;
15
+ return mfConfig ? (0, vite_1.federation)(mfConfig).concat([zephyrPlugin(_options)]) : [zephyrPlugin(_options)];
17
16
  }
18
17
  exports.withZephyr = withZephyr;
19
18
  function zephyrPlugin(_options) {
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/vite-plugin-zephyr.ts"],"names":[],"mappings":";;;;AAAA,oDAA8B;AAG9B,+CAYsB;AACtB,+DAU8B;AAC9B,uDAAoD;AACpD,+DAA4D;AAE5D,2DAAkG;AAClG,2EAAwE;AACxE,kDAAqD;AAGrD,8DAA8D;AAC9D,SAAgB,UAAU,CAAC,QAAiC;IAC1D,4EAA4E;IAC5E,OAAO,IAAA,iBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC7D,CAAC;AAHD,gCAGC;AAED,SAAS,YAAY,CAAC,QAAiC;IACrD,IAAI,OAA+C,CAAC;IACpD,IAAI,WAAuD,CAAC;IAC5D,IAAI,eAAuB,CAAC;IAE5B,MAAM,qBAAqB,GAAG,EAAkC,CAAC;IAEjE,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,MAAM;QAEf,cAAc,EAAE,CAAO,MAAsB,EAAE,EAAE;;YAC/C,MAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE;gBACnC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,MAAM,EAAE,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM;gBAC5B,SAAS,EAAE,MAAM,CAAC,SAAS;aAC5B,CAAC,CAAC;YAEH,IAAA,6BAAM,EAAC,4BAA4B,CAAC,CAAC;YACrC,WAAW,GAAG,MAAM,IAAA,6BAAc,EAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAC/D,IAAA,6BAAM,EAAC,sBAAsB,EAAE,WA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AAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClG;YACE,OAAO,KAAK,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,KAAgC;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-zephyr",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,8 @@
8
8
  "build": "nx run vite-plugin-zephyr:build"
9
9
  },
10
10
  "dependencies": {
11
- "@module-federation/runtime": "^0.6.6",
12
- "@module-federation/vite": "^1.0.0",
11
+ "@module-federation/runtime": "^0.6.10",
12
+ "@module-federation/vite": "^1.1.3",
13
13
  "acorn": "^8.12.1",
14
14
  "acorn-walk": "^8.3.4",
15
15
  "is-ci": "^3",
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "vite-plugin-zephyr",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
- "@module-federation/runtime": "^0.6.6",
9
- "@module-federation/vite": "^1.0.0",
8
+ "@module-federation/runtime": "^0.6.10",
9
+ "@module-federation/vite": "^1.1.3",
10
10
  "acorn": "^8.12.1",
11
11
  "acorn-walk": "^8.3.4",
12
12
  "is-ci": "^3",
13
13
  "json5": "2.2.3",
14
14
  "rollup": "^4.22.5",
15
15
  "vite": "^5.4.8",
16
- "zephyr-agent": "0.0.21",
17
- "zephyr-edge-contract": "0.0.21"
16
+ "zephyr-agent": "0.0.22",
17
+ "zephyr-edge-contract": "0.0.22"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/is-ci": "^3.0.4"