File tree Expand file tree Collapse file tree 5 files changed +5191
-3127
lines changed Expand file tree Collapse file tree 5 files changed +5191
-3127
lines changed Original file line number Diff line number Diff line change 1
1
registry = https://registry.npmjs.org/
2
2
engine-strict = true
3
3
strict-peer-dependencies = false
4
+
Original file line number Diff line number Diff line change 97
97
"@babel/runtime" : " ^7.23.9" ,
98
98
"@nutui/icons-react" : " ^1.0.5" ,
99
99
"@nutui/icons-react-taro" : " ^1.0.5" ,
100
+ "@nutui/jdesign-icons-react-taro" : " 1.0.6-beta.2" ,
100
101
"@nutui/touch-emulator" : " ^1.0.0" ,
101
102
"@react-spring/web" : " ~9.6.1" ,
102
103
"@use-gesture/react" : " 10.2.20" ,
118
119
"@commitlint/cli" : " ^19.0.3" ,
119
120
"@commitlint/config-conventional" : " ^19.0.3" ,
120
121
"@loadable/component" : " ^5.16.3" ,
121
- "prettier-markdown-table" : " ^1.0.2" ,
122
122
"@mdx-js/mdx" : " ^3.0.1" ,
123
123
"@mdx-js/react" : " ^3.0.1" ,
124
124
"@mdx-js/rollup" : " ^3.0.1" ,
184
184
"postcss-rtlcss" : " ^5.1.0" ,
185
185
"postcss-scss" : " ^4.0.9" ,
186
186
"prettier" : " ^3.2.5" ,
187
+ "prettier-markdown-table" : " ^1.0.2" ,
187
188
"react" : " ^18.2.0" ,
188
189
"react-color" : " ^2.19.3" ,
189
190
"react-dom" : " ^18.2.0" ,
Original file line number Diff line number Diff line change 1
1
// babel-preset-taro 更多选项和默认值:
2
2
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
3
+ const replaceIcons = require ( '@nutui/replace-icons' )
4
+ const projectID = process . env . VITE_APP_PROJECT_ID
5
+
3
6
module . exports = {
4
7
presets : [
5
8
[
@@ -12,5 +15,11 @@ module.exports = {
12
15
] ,
13
16
plugins : [
14
17
[ '@babel/plugin-transform-typescript' , { allowDeclareFields : true } ] ,
15
- ] ,
18
+ projectID === 'jmapp' && [
19
+ replaceIcons ( {
20
+ sourceLibrary : [ '@nutui/icons-react-taro' , '@nutui/icons-react' ] ,
21
+ targetLibrary : '@nutui/jdesign-icons-react-taro' ,
22
+ } ) ,
23
+ ] ,
24
+ ] . filter ( Boolean ) ,
16
25
}
Original file line number Diff line number Diff line change 45
45
"author" : " " ,
46
46
"dependencies" : {
47
47
"@babel/runtime" : " ^7.23.9" ,
48
+ "@nutui/replace-icons" : " ^1.0.0" ,
48
49
"@nutui/touch-emulator" : " ^1.0.0" ,
49
50
"@pmmmwh/react-refresh-webpack-plugin" : " 0.5.10" ,
50
51
"@tarojs/components" : " 3.6.22" ,
68
69
"react" : " ^18.2.0" ,
69
70
"react-dom" : " ^18.2.0" ,
70
71
"react-refresh" : " ^0.14.0"
71
-
72
72
},
73
73
"devDependencies" : {
74
74
"@babel/core" : " ^7.23.9" ,
You can’t perform that action at this time.
0 commit comments