@alauda-fe/dynamic-plugin-sdk-rspack 0.0.1-alpha.4 → 0.0.1-alpha.6

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/index.js CHANGED
@@ -170,7 +170,7 @@ var with_monaco_editor_default = () => (config) => {
170
170
  };
171
171
 
172
172
  // libs/dynamic-plugin-sdk-rspack/src/lib/with-remote-mfe-config.ts
173
- import { execSync } from "child_process";
173
+ import { execSync } from "node:child_process";
174
174
  import { withModuleFederation as withModuleFederation2 } from "@nx/module-federation/rspack";
175
175
  import { merge as merge4 } from "rspack-merge";
176
176
  var generateName = (name) => {
package/lib/i18n-merge.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import fs from 'node:fs';
4
4
  import path from 'node:path';
5
+ import { pathToFileURL } from 'node:url';
5
6
 
6
7
  /**
7
8
  * @param {string[]} argv
@@ -127,7 +128,10 @@ async function run() {
127
128
  throw new Error(`Config file not found: ${configPath}`);
128
129
  }
129
130
 
130
- const config = await import(configPath);
131
+ const config = await import(
132
+ pathToFileURL(configPath),
133
+ configPath.endsWith('.json') ? { with: { type: 'json' } } : undefined
134
+ ).then(mod => mod.default || mod);
131
135
  const inputs = config?.input;
132
136
  const output = config?.output;
133
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda-fe/dynamic-plugin-sdk-rspack",
3
- "version": "0.0.1-alpha.4",
3
+ "version": "0.0.1-alpha.6",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -8,13 +8,17 @@
8
8
  "access": "public"
9
9
  },
10
10
  "peerDependencies": {
11
- "css-loader": ">=6.0.0",
12
- "monaco-editor-webpack-plugin": "^7.1.1",
13
- "style-loader": ">=3.0.0"
11
+ "@rspack/core": "^1.0.0 || ^2.0.0",
12
+ "@rspack/dev-server": "^1.0.0 || ^2.0.0"
14
13
  },
15
14
  "dependencies": {
16
- "@rspack/core": "1.6.8",
17
- "@rspack/dev-server": "1.2.1"
15
+ "@alauda/custom-webpack": "^5.3.2",
16
+ "@nx/module-federation": "^22.7.5",
17
+ "css-loader": ">=6.0.0",
18
+ "monaco-editor-webpack-plugin": "^7.1.1",
19
+ "rspack-merge": "^1.0.1",
20
+ "style-loader": ">=3.0.0",
21
+ "yaml-loader": ">=0.8.0"
18
22
  },
19
23
  "packageManager": "yarn@4.16.0",
20
24
  "resolutions": {