Skip to content

Commit

Permalink
fix(react): 支付宝小程序插件配置字段缺失、Taro专有Hooks在小程序插件页面中无法使用 (#11362)
Browse files Browse the repository at this point in the history
* fix(taro-alipay): 支付宝小程序插件配置字段缺失

支付宝小程序插件生成的plugin.json配置缺少pages

#11361

* fix(react): 修复小程序插件无法使用hooks问题

Taro专有 Hooks在小程序插件页面中可以使用

#11373

* test(ci): 更新测试结果快照

* fix: 更改代码写法,修复错误

临时修复react-devtools在插件开发模式下报错问题;PR中根据代码建议调整写法

#11438

* Revert "fix(react): 修复小程序插件无法使用hooks问题"

This reverts commit dc93f9a.

# Conflicts:
#	packages/taro-loader/src/native-component.ts

* chore: update plugin example

* fix(react): 修复小程序插件无法使用 Taro hooks 的问题,fix #11373

* fix(loader): 修复编译小程序插件时配合使用 devtools 插件会报错的问题,fix #11438

* fix: ci

Co-authored-by: chenjiajian <[email protected]>
  • Loading branch information
fw6 and Chen-jj authored Mar 27, 2022
1 parent 604f54c commit c9f9eea
Show file tree
Hide file tree
Showing 28 changed files with 4,141 additions and 3,876 deletions.
2 changes: 1 addition & 1 deletion examples/build-weapp-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ npm run build

#### 3. 开发

插件逻辑位于 `src/plugin` 内,而 `pages/index` 则是用于测试插件的页面。
插件逻辑位于 `src/plugin` 内,而 `src/pages/index` 则是用于测试插件的页面。

#### 4. 预览

Expand Down
20 changes: 10 additions & 10 deletions examples/build-weapp-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@
],
"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.4.2",
"@tarojs/plugin-framework-react": "3.4.2",
"@tarojs/react": "3.4.2",
"@tarojs/runtime": "3.4.2",
"@tarojs/taro": "3.4.2",
"@tarojs/components": "3.4.3",
"@tarojs/plugin-framework-react": "3.4.3",
"@tarojs/react": "3.4.3",
"@tarojs/runtime": "3.4.3",
"@tarojs/taro": "3.4.3",
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@tarojs/cli": "3.4.2",
"@tarojs/mini-runner": "3.4.2",
"@tarojs/webpack-runner": "3.4.2",
"@tarojs/cli": "3.4.3",
"@tarojs/mini-runner": "3.4.3",
"@tarojs/webpack-runner": "3.4.3",
"@types/react": "^17.0.2",
"@types/webpack-env": "^1.13.6",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"babel-preset-taro": "3.4.2",
"babel-preset-taro": "3.4.3",
"eslint": "^6.8.0",
"eslint-config-taro": "3.4.2",
"eslint-config-taro": "3.4.3",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^4.2.0",
Expand Down
Loading

0 comments on commit c9f9eea

Please sign in to comment.