zephyr-modernjs-plugin 0.1.3-next.5 → 0.1.3-next.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.
|
@@ -41,24 +41,21 @@ const withZephyr = (zephyrOptions) => ({
|
|
|
41
41
|
name: pluginName,
|
|
42
42
|
pre: ['@modern-js/plugin-module-federation-config'],
|
|
43
43
|
async setup(api) {
|
|
44
|
-
api.modifyWebpackConfig(async (config
|
|
44
|
+
api.modifyWebpackConfig(async (config) => {
|
|
45
45
|
const currentBundler = api.getAppContext().bundlerType;
|
|
46
46
|
if (currentBundler !== 'webpack') {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
const { withZephyr } = await Promise.resolve().then(() => __importStar(require('zephyr-webpack-plugin')));
|
|
50
|
-
|
|
51
|
-
/* eslint-disable-next-line */
|
|
52
|
-
utils.mergeConfig(config, z_config);
|
|
50
|
+
return await withZephyr(zephyrOptions)(config);
|
|
53
51
|
});
|
|
54
|
-
api.modifyRspackConfig(async (config
|
|
52
|
+
api.modifyRspackConfig(async (config) => {
|
|
55
53
|
const currentBundler = api.getAppContext().bundlerType;
|
|
56
54
|
if (currentBundler !== 'rspack') {
|
|
57
55
|
return;
|
|
58
56
|
}
|
|
59
57
|
const { withZephyr } = await Promise.resolve().then(() => __importStar(require('zephyr-rspack-plugin')));
|
|
60
|
-
|
|
61
|
-
utils.mergeConfig(config, z_config);
|
|
58
|
+
return await withZephyr(zephyrOptions)(config);
|
|
62
59
|
});
|
|
63
60
|
},
|
|
64
61
|
usePlugins: isDev ? [zephyrFixPublicPath()] : [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/modernjs-plugin/with-zephyr.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAsC;AAGtC,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAC5C,MAAM,KAA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/app-tools": "catalog:modernjs",
|
|
24
23
|
"tslib": "catalog:typescript",
|
|
25
24
|
"zephyr-agent": "workspace:*",
|
|
26
25
|
"zephyr-edge-contract": "workspace:*"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
28
|
+
"@modern-js/app-tools": "catalog:modernjs",
|
|
29
29
|
"@types/jest": "catalog:typescript",
|
|
30
30
|
"@types/node-persist": "catalog:typescript",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "catalog:eslint",
|
|
32
32
|
"ts-jest": "catalog:typescript"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"
|
|
36
|
-
"zephyr-
|
|
35
|
+
"@modern-js/app-tools": "^2.0.0",
|
|
36
|
+
"zephyr-rspack-plugin": ">=0.1.0",
|
|
37
|
+
"zephyr-webpack-plugin": ">=0.1.0"
|
|
37
38
|
},
|
|
38
39
|
"peerDependenciesMeta": {
|
|
39
40
|
"zephyr-rspack-plugin": {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import baseConfig from '../../eslint.config.mjs';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...baseConfig,
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
7
|
+
rules: {
|
|
8
|
+
'@typescript-eslint/explicit-function-return-type': [
|
|
9
|
+
'error',
|
|
10
|
+
{
|
|
11
|
+
allowExpressions: true,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-modernjs-plugin",
|
|
3
|
-
"version": "0.1.3-next.
|
|
3
|
+
"version": "0.1.3-next.6",
|
|
4
4
|
"description": "Modernjs plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"main": "dist/index.js",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@modern-js/app-tools": "^2.68.14",
|
|
20
19
|
"tslib": "^2.8.1",
|
|
21
|
-
"zephyr-agent": "0.1.3-next.
|
|
22
|
-
"zephyr-edge-contract": "0.1.3-next.
|
|
20
|
+
"zephyr-agent": "0.1.3-next.6",
|
|
21
|
+
"zephyr-edge-contract": "0.1.3-next.6"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
24
|
+
"@modern-js/app-tools": "^2.69.7",
|
|
25
25
|
"@types/jest": "29.5.14",
|
|
26
26
|
"@types/node-persist": "^3.1.8",
|
|
27
27
|
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
28
28
|
"ts-jest": "^29.2.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"zephyr-
|
|
31
|
+
"@modern-js/app-tools": "^2.0.0",
|
|
32
|
+
"zephyr-rspack-plugin": ">=0.1.0",
|
|
33
|
+
"zephyr-webpack-plugin": ">=0.1.0"
|
|
33
34
|
},
|
|
34
35
|
"peerDependenciesMeta": {
|
|
35
36
|
"zephyr-rspack-plugin": {
|