@flatjs/evolve 2.3.1 → 2.3.2-next.1
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.
@@ -2,7 +2,7 @@ import { type LibraryOptions } from 'webpack';
|
|
2
2
|
/**
|
3
3
|
* Advanced configuration for modules that should be shared in the share scope.
|
4
4
|
*/
|
5
|
-
interface SharedConfig {
|
5
|
+
export interface SharedConfig {
|
6
6
|
/**
|
7
7
|
* Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
|
8
8
|
*/
|
@@ -40,7 +40,7 @@ interface SharedConfig {
|
|
40
40
|
*/
|
41
41
|
version?: string | false;
|
42
42
|
}
|
43
|
-
interface SharedObject {
|
43
|
+
export interface SharedObject {
|
44
44
|
[index: string]: string | SharedConfig;
|
45
45
|
}
|
46
46
|
/**
|
@@ -117,4 +117,3 @@ export type ModuleFederationOptions = {
|
|
117
117
|
*/
|
118
118
|
shared?: (string | SharedObject)[] | SharedObject;
|
119
119
|
};
|
120
|
-
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { BabelFile } from '@babel/core';
|
2
1
|
/**
|
3
2
|
* Buildin plugin `@flatjs/babel-plugin-import` configurations
|
4
3
|
*/
|
@@ -24,9 +23,16 @@ export type ModularImportOption = {
|
|
24
23
|
fileName?: string;
|
25
24
|
/**
|
26
25
|
* We can use customName to customize import file path.
|
27
|
-
*
|
26
|
+
*
|
27
|
+
* If you want to use swc-loader, the return value must be a fixed string, dynamic results are not currently supported.
|
28
|
+
*
|
29
|
+
* @param transformedMethodName - The name of the method to be imported.
|
30
|
+
* @param internalModulePath - The path of the module that is being imported.
|
31
|
+
* e.g. `@dimjs/utils/dist/debounce/debounce.js`
|
32
|
+
*
|
33
|
+
* @example `import '@dimjs/lang/dist/is-empty.js';`
|
28
34
|
*/
|
29
|
-
customName?: (transformedMethodName: string,
|
35
|
+
customName?: (transformedMethodName: string, internalModulePath?: string) => string;
|
30
36
|
/**
|
31
37
|
* @default: true
|
32
38
|
*/
|
@@ -34,6 +40,7 @@ export type ModularImportOption = {
|
|
34
40
|
/**
|
35
41
|
* @default false
|
36
42
|
* @example (name) => `${name}/style/2x` | `boolean` }
|
43
|
+
* @deprecated Recommended to use the css in js solution
|
37
44
|
*/
|
38
45
|
style?: true | 'css' | ((name: string, file: Record<string, unknown>) => string | boolean);
|
39
46
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "2.3.1",
|
3
|
+
"version": "2.3.2-next.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -43,13 +43,13 @@
|
|
43
43
|
"@babel/core": "^7.26.10",
|
44
44
|
"@clack/prompts": "^0.10.1",
|
45
45
|
"@discoveryjs/json-ext": "0.6.3",
|
46
|
-
"@flatjs/babel-plugin-import": "2.2.
|
47
|
-
"@flatjs/common": "2.2.
|
48
|
-
"@flatjs/evolve-preset-babel": "2.2.
|
49
|
-
"@flatjs/forge-postcss-plugin-pixel": "2.2.
|
50
|
-
"@flatjs/forge-ts-checker": "1.1.
|
51
|
-
"@flatjs/graph": "2.2.
|
52
|
-
"@flatjs/mock": "2.4.
|
46
|
+
"@flatjs/babel-plugin-import": "2.2.9-next.1",
|
47
|
+
"@flatjs/common": "2.2.4-next.0",
|
48
|
+
"@flatjs/evolve-preset-babel": "2.2.4-next.0",
|
49
|
+
"@flatjs/forge-postcss-plugin-pixel": "2.2.4-next.0",
|
50
|
+
"@flatjs/forge-ts-checker": "1.1.2-next.0",
|
51
|
+
"@flatjs/graph": "2.2.9-next.1",
|
52
|
+
"@flatjs/mock": "2.4.1-next.1",
|
53
53
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.16",
|
54
54
|
"@types/babel__core": "^7.20.5",
|
55
55
|
"babel-loader": "^10.0.0",
|
@@ -90,7 +90,7 @@
|
|
90
90
|
"@dimjs/model": "2.1.1",
|
91
91
|
"@dimjs/model-react": "2.1.1",
|
92
92
|
"@dimjs/utils": "2.1.2",
|
93
|
-
"@flatjs/testing": "2.2.
|
93
|
+
"@flatjs/testing": "2.2.4-next.0",
|
94
94
|
"@hyperse/eslint-config-hyperse": "^1.4.1",
|
95
95
|
"@swc/core": "1.11.21",
|
96
96
|
"@types/express": "5.0.1",
|