@flatjs/evolve 2.3.1 → 2.3.2-next.0
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.
@@ -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.
|
3
|
+
"version": "2.3.2-next.0",
|
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.
|
46
|
+
"@flatjs/babel-plugin-import": "2.2.9-next.0",
|
47
47
|
"@flatjs/common": "2.2.3",
|
48
48
|
"@flatjs/evolve-preset-babel": "2.2.3",
|
49
49
|
"@flatjs/forge-postcss-plugin-pixel": "2.2.3",
|
50
50
|
"@flatjs/forge-ts-checker": "1.1.1",
|
51
|
-
"@flatjs/graph": "2.2.
|
52
|
-
"@flatjs/mock": "2.4.0",
|
51
|
+
"@flatjs/graph": "2.2.9-next.0",
|
52
|
+
"@flatjs/mock": "2.4.1-next.0",
|
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",
|