Skip to content

Commit 3cfb706

Browse files
authored
feat: 修改lazy-load示例项目 (#1875)
* feat: 处理版本管理 * feat: 更新文件展示 * feat: 还原脚本配置 * feat: 修复页面展示
1 parent 96c2eee commit 3cfb706

3 files changed

Lines changed: 1714 additions & 2449 deletions

File tree

examples/lazy-load-component/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
libraryName: "taro-ui",
1818
customName: (name) => `taro-ui/lib/components/${name.slice(3)}`,
1919
customStyleName: (name) =>
20-
`taro-ui/dist/style/components/${name.slice(3)}.scss`,
20+
`taro-ui/lib/style/components/${name.slice(3)}.scss`,
2121
},
2222
"taro-ui",
2323
],

examples/lazy-load-component/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@
3636
"author": "",
3737
"dependencies": {
3838
"@babel/runtime": "^7.7.7",
39-
"@tarojs/components": "3.6.2",
40-
"@tarojs/helper": "3.6.2",
41-
"@tarojs/plugin-framework-react": "3.6.2",
42-
"@tarojs/plugin-platform-alipay": "3.6.2",
43-
"@tarojs/plugin-platform-h5": "3.6.2",
44-
"@tarojs/plugin-platform-jd": "3.6.2",
45-
"@tarojs/plugin-platform-qq": "3.6.2",
46-
"@tarojs/plugin-platform-swan": "3.6.2",
47-
"@tarojs/plugin-platform-tt": "3.6.2",
48-
"@tarojs/plugin-platform-weapp": "3.6.2",
49-
"@tarojs/react": "3.6.2",
50-
"@tarojs/runtime": "3.6.2",
51-
"@tarojs/shared": "3.6.2",
52-
"@tarojs/taro": "3.6.2",
39+
"@tarojs/components": "4.2.0",
40+
"@tarojs/helper": "4.2.0",
41+
"@tarojs/plugin-framework-react": "4.2.0",
42+
"@tarojs/plugin-platform-alipay": "4.2.0",
43+
"@tarojs/plugin-platform-h5": "4.2.0",
44+
"@tarojs/plugin-platform-jd": "4.2.0",
45+
"@tarojs/plugin-platform-qq": "4.2.0",
46+
"@tarojs/plugin-platform-swan": "4.2.0",
47+
"@tarojs/plugin-platform-tt": "4.2.0",
48+
"@tarojs/plugin-platform-weapp": "4.2.0",
49+
"@tarojs/react": "4.2.0",
50+
"@tarojs/runtime": "4.2.0",
51+
"@tarojs/shared": "4.2.0",
52+
"@tarojs/taro": "4.2.0",
5353
"react": "^18.0.0",
5454
"react-dom": "^18.0.0",
55-
"taro-ui": "^3.3.0"
55+
"taro-ui": "workspace:^"
5656
},
5757
"devDependencies": {
5858
"@babel/core": "^7.8.0",
5959
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
60-
"@tarojs/cli": "3.6.2",
61-
"@tarojs/webpack5-runner": "3.6.2",
60+
"@tarojs/cli": "4.2.0",
61+
"@tarojs/webpack5-runner": "4.2.0",
6262
"@types/react": "^18.0.0",
6363
"@types/webpack-env": "^1.13.6",
6464
"@typescript-eslint/eslint-plugin": "^5.20.0",

0 commit comments

Comments
 (0)