@mpxjs/webpack-plugin 2.10.18-beta.14 → 2.10.18-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,7 @@ function buildPagesMap ({ localPagesMap, loaderContext, jsonConfig, rnConfig })
51
51
  let firstPage = ''
52
52
  const pagesMap = {}
53
53
  const mpx = loaderContext.getMpx()
54
- Object.keys(localPagesMap).forEach((pagePath) => {
54
+ Object.keys(localPagesMap).sort().forEach((pagePath) => {
55
55
  const pageCfg = localPagesMap[pagePath]
56
56
  const pageRequest = stringifyRequest(loaderContext, pageCfg.resource)
57
57
  if (pageCfg.async && rnConfig.supportSubpackage) {
@@ -80,7 +80,7 @@ function buildComponentsMap ({ localComponentsMap, builtInComponentsMap, loaderC
80
80
  const componentsMap = {}
81
81
  const mpx = loaderContext.getMpx()
82
82
  if (localComponentsMap) {
83
- Object.keys(localComponentsMap).forEach((componentName) => {
83
+ Object.keys(localComponentsMap).sort().forEach((componentName) => {
84
84
  const componentCfg = localComponentsMap[componentName]
85
85
  const componentRequest = stringifyRequest(loaderContext, componentCfg.resource)
86
86
  if (componentCfg.async && rnConfig.supportSubpackage) {
@@ -114,7 +114,7 @@ function buildComponentsMap ({ localComponentsMap, builtInComponentsMap, loaderC
114
114
  })
115
115
  }
116
116
  if (builtInComponentsMap) {
117
- Object.keys(builtInComponentsMap).forEach((componentName) => {
117
+ Object.keys(builtInComponentsMap).sort().forEach((componentName) => {
118
118
  const componentCfg = builtInComponentsMap[componentName]
119
119
  const componentRequest = stringifyRequest(loaderContext, componentCfg.resource)
120
120
  componentsMap[componentName] = getComponentGetter(getBuiltInComponent(componentRequest))
@@ -306,6 +306,7 @@ const Input = forwardRef((props, ref) => {
306
306
  multiline: !!multiline,
307
307
  onTouchStart,
308
308
  onTouchEnd,
309
+ onTouchMove: onTouchEnd,
309
310
  onFocus,
310
311
  onBlur,
311
312
  onChange,
@@ -498,6 +498,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
498
498
  multiline: !!multiline,
499
499
  onTouchStart,
500
500
  onTouchEnd,
501
+ onTouchMove: onTouchEnd,
501
502
  onFocus,
502
503
  onBlur,
503
504
  onChange,
@@ -14,6 +14,11 @@ export function getComponent (component, extendOptions) {
14
14
  // eslint-disable-next-line
15
15
  if (extendOptions && !component.__mpxExtended) {
16
16
  extend(component, extendOptions, { __mpxExtended: true })
17
+ const render = (component.type && component.type.render) || component.render
18
+ const displayName = extendOptions.displayName || component.displayName
19
+ if (render && displayName && !render.displayName) {
20
+ render.displayName = displayName
21
+ }
17
22
  }
18
23
  return component
19
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.18-beta.14",
3
+ "version": "2.10.18-beta.16",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"