@mpxjs/webpack-plugin 2.8.1 → 2.8.6
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/index.js +2 -2
- package/lib/json-compiler/index.js +1 -1
- package/lib/loader.js +5 -6
- package/lib/native-loader.js +1 -1
- package/lib/resolver/FixDescriptionInfoPlugin.js +1 -0
- package/lib/runtime/animation.js +60 -0
- package/lib/runtime/optionProcessor.js +9 -101
- package/lib/runtime/transRpxStyle.js +44 -0
- package/lib/script-setup-compiler/index.js +1 -1
- package/lib/utils/get-json-content.js +7 -3
- package/lib/web/processJSON.js +2 -4
- package/lib/web/processScript.js +8 -4
- package/lib/wxss/CssSyntaxError.js +29 -0
- package/lib/wxss/Warning.js +22 -0
- package/lib/wxss/index.js +5 -0
- package/lib/wxss/loader.js +234 -132
- package/lib/wxss/options.json +209 -0
- package/lib/wxss/plugins/index.js +5 -0
- package/lib/wxss/plugins/postcss-icss-parser.js +124 -0
- package/lib/wxss/plugins/postcss-import-parser.js +372 -0
- package/lib/wxss/plugins/postcss-url-parser.js +447 -0
- package/lib/wxss/runtime/api.js +104 -0
- package/lib/wxss/runtime/getUrl.js +28 -0
- package/lib/wxss/runtime/noSourceMaps.js +1 -0
- package/lib/wxss/runtime/sourceMaps.js +25 -0
- package/lib/wxss/utils.js +1312 -0
- package/package.json +2 -2
- package/lib/wxss/url/escape.js +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.6",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"engines": {
|
|
83
83
|
"node": ">=14.14.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "c4261c7ea5a16ee3ceaac78afad09e5e0b35d39a"
|
|
86
86
|
}
|
package/lib/wxss/url/escape.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = function escape (url) {
|
|
2
|
-
if (typeof url !== 'string') {
|
|
3
|
-
return url
|
|
4
|
-
}
|
|
5
|
-
// If url is already wrapped in quotes, remove them
|
|
6
|
-
if (/^['"].*['"]$/.test(url)) {
|
|
7
|
-
url = url.slice(1, -1)
|
|
8
|
-
}
|
|
9
|
-
// Should url be wrapped?
|
|
10
|
-
// See https://drafts.csswg.org/css-values-3/#urls
|
|
11
|
-
if (/["'() \t\n]/.test(url)) {
|
|
12
|
-
return '"' + url.replace(/"/g, '\\"').replace(/\n/g, '\\n') + '"'
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return url
|
|
16
|
-
}
|