@next-core/build-next-bricks 2.0.1-alpha.0 → 2.0.1-alpha.2

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/build.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/build-next-bricks",
3
- "version": "2.0.1-alpha.0",
3
+ "version": "2.0.1-alpha.2",
4
4
  "description": "Build next bricks",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/build-next-bricks",
6
6
  "license": "GPL-3.0",
@@ -58,5 +58,5 @@
58
58
  "devDependencies": {
59
59
  "@next-core/brick-manifest": "^0.7.1"
60
60
  },
61
- "gitHead": "af88ecf2d4d8d70793324fd9d6177718d4e7d417"
61
+ "gitHead": "31601bf1179aa7359938c2154193c6e3b52f7bfe"
62
62
  }
package/src/build.js CHANGED
@@ -142,13 +142,11 @@ async function getWebpackConfig(config) {
142
142
 
143
143
  const sharedSingletonPackages = [
144
144
  "history",
145
- "i18next",
146
145
  "lodash",
147
146
  "moment",
148
147
  "moment/locale/zh-cn.js",
149
148
  "js-yaml",
150
149
  "i18next-browser-languagedetector",
151
- "react-i18next",
152
150
  "@babel/parser",
153
151
  "@easyops-cn/brick-next-pipes",
154
152
  "@next-core/pipes",
@@ -164,9 +162,12 @@ async function getWebpackConfig(config) {
164
162
  "@next-core/utils/storyboard",
165
163
  ];
166
164
 
165
+ // React 相关的也允许多版本共存
167
166
  const sharedPackages = [
167
+ "i18next",
168
168
  "react",
169
169
  "react-dom",
170
+ "react-i18next",
170
171
  "@next-core/element",
171
172
  "@next-core/react-element",
172
173
  "@next-core/react-runtime",