Skip to content

Commit

Permalink
fix(taro): 直接引用 shallow-equal 路径进行编译
Browse files Browse the repository at this point in the history
直接把代码编译到 @tarojs/taro 包, 不设置 external
  • Loading branch information
yuche committed Aug 2, 2019
1 parent 4d950d0 commit 2ef7947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/src/memo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isFunction } from './util'
import { shallowEqual } from '@tarojs/utils'
import shallowEqual from '@tarojs/utils/src/shallow-equal'

export function memo (component, propsAreEqual) {
component.prototype.shouldComponentUpdate = function (nextProps) {
Expand Down

0 comments on commit 2ef7947

Please sign in to comment.