@flatjs/evolve 2.1.0-next.0 → 2.1.0-next.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
import{babelMerge}from"@armit/babel-merge";import{logger
|
1
|
+
import{babelMerge}from"@armit/babel-merge";import babelPluginImport from"@flatjs/babel-plugin-import";import{logger}from"@flatjs/common";import{reactBabelPreset,vueBabelPreset}from"@flatjs/evolve-preset-babel";import{moduleName}from"../constants.js";export const mergeBabelOption=(e=[],r={usePreset:"react"})=>{const t=e.map((e=>[babelPluginImport,{transformToDefaultImport:!1,libraryDirectory:"dist",...e},e.libraryName])),{usePreset:a="react",...l}=r,o="react"===a?reactBabelPreset():"vue"===a?vueBabelPreset():reactBabelPreset();let m={};try{m=babelMerge(o,l),m.plugins?m.plugins.unshift(...t):m.plugins=t}catch(e){logger.error(e,moduleName)}return{...m,babelrc:!1,compact:!1}};
|
@@ -37,7 +37,6 @@ export interface RuleSetLoaderOptions {
|
|
37
37
|
lessOptions?: Record<string, unknown>;
|
38
38
|
/**
|
39
39
|
* Modular import plugin for babel, compatible with antd, antd-mobile, lodash, material-ui, and so on.
|
40
|
-
* https://github.com/ant-design/babel-plugin-import
|
41
40
|
* @default []
|
42
41
|
*/
|
43
42
|
modularImports?: ModularImportOption[];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "2.1.0-next.
|
3
|
+
"version": "2.1.0-next.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -41,15 +41,15 @@
|
|
41
41
|
"@armit/package": "^0.1.5",
|
42
42
|
"@armit/worker-threads": "^0.1.4",
|
43
43
|
"@babel/core": "7.24.3",
|
44
|
-
"@flatjs/
|
45
|
-
"@flatjs/
|
46
|
-
"@flatjs/
|
47
|
-
"@flatjs/
|
48
|
-
"@flatjs/
|
44
|
+
"@flatjs/babel-plugin-import": "2.1.0-next.1",
|
45
|
+
"@flatjs/common": "2.1.0-next.2",
|
46
|
+
"@flatjs/evolve-preset-babel": "2.1.0-next.2",
|
47
|
+
"@flatjs/forge-postcss-plugin-pixel": "2.1.0-next.2",
|
48
|
+
"@flatjs/graph": "2.1.0-next.2",
|
49
|
+
"@flatjs/mock": "2.1.0-next.2",
|
49
50
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
|
50
51
|
"@types/babel__core": "7.20.5",
|
51
52
|
"babel-loader": "9.1.3",
|
52
|
-
"babel-plugin-import": "1.13.8",
|
53
53
|
"better-opn": "3.0.2",
|
54
54
|
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
55
55
|
"css-loader": "6.10.0",
|
@@ -80,7 +80,7 @@
|
|
80
80
|
},
|
81
81
|
"devDependencies": {
|
82
82
|
"@armit/eslint-config-bases": "^0.1.5",
|
83
|
-
"@flatjs/testing": "2.1.0-next.
|
83
|
+
"@flatjs/testing": "2.1.0-next.2",
|
84
84
|
"@swc/core": "1.4.11",
|
85
85
|
"@types/express": "4.17.21",
|
86
86
|
"@types/listr": "0.14.9",
|