@dcloudio/uni-cli-shared 3.0.0-alpha-3041520220610001 → 3.0.0-alpha-3041720220614001
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/dist/json/mp/pages.js
CHANGED
|
@@ -16,15 +16,18 @@ function parseMiniProgramPagesJson(jsonStr, platform, options = { subpackages: f
|
|
|
16
16
|
return parsePagesJson(jsonStr, platform, options);
|
|
17
17
|
}
|
|
18
18
|
exports.parseMiniProgramPagesJson = parseMiniProgramPagesJson;
|
|
19
|
+
const NON_APP_JSON_KEYS = [
|
|
20
|
+
'unipush',
|
|
21
|
+
'usingComponents',
|
|
22
|
+
'optimization',
|
|
23
|
+
'scopedSlotsCompiler',
|
|
24
|
+
'usingComponents',
|
|
25
|
+
'uniStatistics',
|
|
26
|
+
];
|
|
19
27
|
function mergeMiniProgramAppJson(appJson, platformJson = {}) {
|
|
20
28
|
Object.keys(platformJson).forEach((name) => {
|
|
21
29
|
if (!(0, project_1.isMiniProgramProjectJsonKey)(name) &&
|
|
22
|
-
!
|
|
23
|
-
'unipush',
|
|
24
|
-
'usingComponents',
|
|
25
|
-
'optimization',
|
|
26
|
-
'scopedSlotsCompiler',
|
|
27
|
-
].includes(name)) {
|
|
30
|
+
!NON_APP_JSON_KEYS.includes(name)) {
|
|
28
31
|
appJson[name] = platformJson[name];
|
|
29
32
|
}
|
|
30
33
|
});
|
package/dist/logs/format.js
CHANGED
|
@@ -56,6 +56,9 @@ const initNVueInfoFormattersOnce = (0, uni_shared_1.once)(() => {
|
|
|
56
56
|
nvueInfoFormatters.push(exports.removeNVueInfoFormatter);
|
|
57
57
|
});
|
|
58
58
|
function formatInfoMsg(msg, options) {
|
|
59
|
+
if (options && (0, env_1.isInHBuilderX)()) {
|
|
60
|
+
options.timestamp = false;
|
|
61
|
+
}
|
|
59
62
|
initInfoFormattersOnce();
|
|
60
63
|
const formatter = infoFormatters.find(({ test }) => test(msg, options));
|
|
61
64
|
if (formatter) {
|
|
@@ -369,15 +369,19 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
369
369
|
...postcssOptions,
|
|
370
370
|
to: id,
|
|
371
371
|
from: id,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
372
|
+
...(devSourcemap
|
|
373
|
+
? {
|
|
374
|
+
map: {
|
|
375
|
+
inline: false,
|
|
376
|
+
annotation: false,
|
|
377
|
+
// postcss may return virtual files
|
|
378
|
+
// we cannot obtain content of them, so this needs to be enabled
|
|
379
|
+
sourcesContent: true,
|
|
380
|
+
// when "prev: preprocessorMap", the result map may include duplicate filename in `postcssResult.map.sources`
|
|
381
|
+
// prev: preprocessorMap,
|
|
382
|
+
},
|
|
383
|
+
}
|
|
384
|
+
: {}),
|
|
381
385
|
});
|
|
382
386
|
// record CSS dependencies from @imports
|
|
383
387
|
for (const message of postcssResult.messages) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3041720220614001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"@babel/core": "^7.17.9",
|
|
23
23
|
"@babel/parser": "^7.17.9",
|
|
24
24
|
"@babel/types": "^7.17.0",
|
|
25
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
26
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
25
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3041720220614001",
|
|
26
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3041720220614001",
|
|
27
27
|
"@intlify/core-base": "9.1.9",
|
|
28
28
|
"@intlify/shared": "9.1.9",
|
|
29
29
|
"@intlify/vue-devtools": "9.1.9",
|
|
30
30
|
"@rollup/pluginutils": "^4.2.0",
|
|
31
|
-
"@vue/compiler-core": "3.2.
|
|
32
|
-
"@vue/compiler-dom": "3.2.
|
|
33
|
-
"@vue/compiler-sfc": "3.2.
|
|
34
|
-
"@vue/server-renderer": "3.2.
|
|
35
|
-
"@vue/shared": "3.2.
|
|
31
|
+
"@vue/compiler-core": "3.2.37",
|
|
32
|
+
"@vue/compiler-dom": "3.2.37",
|
|
33
|
+
"@vue/compiler-sfc": "3.2.37",
|
|
34
|
+
"@vue/server-renderer": "3.2.37",
|
|
35
|
+
"@vue/shared": "3.2.37",
|
|
36
36
|
"autoprefixer": "^10.4.7",
|
|
37
37
|
"base64url": "^3.0.1",
|
|
38
38
|
"chokidar": "^3.5.3",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"@types/sass": "^1.43.1",
|
|
73
73
|
"@types/stylus": "^0.48.36",
|
|
74
74
|
"postcss": "^8.4.13",
|
|
75
|
-
"vue": "3.2.
|
|
75
|
+
"vue": "3.2.37"
|
|
76
76
|
}
|
|
77
77
|
}
|