@mpxjs/webpack-plugin 2.7.0-beta.13 → 2.7.0-beta.14
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.
- package/lib/loader.js +3 -2
- package/package.json +2 -2
package/lib/loader.js
CHANGED
|
@@ -218,8 +218,9 @@ module.exports = function (content) {
|
|
|
218
218
|
if (!isProduction) {
|
|
219
219
|
output += `global.currentResource = ${JSON.stringify(filePath)}\n`
|
|
220
220
|
}
|
|
221
|
-
//
|
|
222
|
-
|
|
221
|
+
// todo 对于独立分包支持将app.mpx中的script block作为独立分包入口逻辑注入到所有页面和组件中,将独立分包i18n的注入也迁移到入口逻辑中
|
|
222
|
+
// 为app或独立分包入口注入i18n
|
|
223
|
+
if (i18n && (ctorType === 'app' || isIndependent)) {
|
|
223
224
|
const i18nWxsPath = normalize.lib('runtime/i18n.wxs')
|
|
224
225
|
const i18nWxsLoaderPath = normalize.lib('wxs/i18n-loader.js')
|
|
225
226
|
const i18nWxsRequest = i18nWxsLoaderPath + '!' + i18nWxsPath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.7.0-beta.
|
|
3
|
+
"version": "2.7.0-beta.14",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"@types/babel-traverse": "^6.25.4",
|
|
78
78
|
"@types/babel-types": "^7.0.4"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5f071c52c82077115a40350caa45669bc3b82221"
|
|
81
81
|
}
|