@mpxjs/webpack-plugin 2.10.18-beta.15 → 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))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.18-beta.15",
3
+ "version": "2.10.18-beta.16",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"