@mpxjs/webpack-plugin 2.7.0-beta.12 → 2.7.0-beta.13
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.
|
@@ -38,15 +38,14 @@ module.exports = function (css, map) {
|
|
|
38
38
|
},
|
|
39
39
|
config.options
|
|
40
40
|
)
|
|
41
|
-
// ali
|
|
41
|
+
// ali平台下处理scoped和host选择器
|
|
42
42
|
if (mode === 'ali') {
|
|
43
|
+
if (queryObj.scoped) {
|
|
44
|
+
plugins.push(scopeId({ id }))
|
|
45
|
+
}
|
|
43
46
|
plugins.push(transSpecial({ id }))
|
|
44
47
|
}
|
|
45
48
|
|
|
46
|
-
if (queryObj.scoped) {
|
|
47
|
-
plugins.push(scopeId({ id }))
|
|
48
|
-
}
|
|
49
|
-
|
|
50
49
|
plugins.push(pluginCondStrip({
|
|
51
50
|
defs
|
|
52
51
|
}))
|
|
@@ -2039,7 +2039,10 @@ function processElement (el, root, options, meta) {
|
|
|
2039
2039
|
|
|
2040
2040
|
const pass = isNative || processTemplate(el) || processingTemplate
|
|
2041
2041
|
|
|
2042
|
-
|
|
2042
|
+
// 仅ali平台需要scoped模拟样式隔离
|
|
2043
|
+
if (mode === 'ali') {
|
|
2044
|
+
processScoped(el, options)
|
|
2045
|
+
}
|
|
2043
2046
|
|
|
2044
2047
|
if (transAli) {
|
|
2045
2048
|
processAliExternalClassesHack(el, options)
|
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.13",
|
|
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": "1f73f63dd36b91d20e2234ac2a36edce3e75a352"
|
|
81
81
|
}
|