@mpxjs/webpack-plugin 2.7.54 → 2.7.55

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.
@@ -7,6 +7,7 @@ module.exports = (item) => {
7
7
  }
8
8
 
9
9
  if (typeof btoa === 'function') {
10
+ // eslint-disable-next-line no-undef
10
11
  const base64 = btoa(
11
12
  unescape(encodeURIComponent(JSON.stringify(cssMapping)))
12
13
  )
package/lib/wxss/utils.js CHANGED
@@ -1055,7 +1055,6 @@ function getModuleCode (
1055
1055
  // 符合css后缀名的文件经过mpx处理后会带上相应的后缀防止使用 WebPack 的默认解析规则,此时 require/import 相应路径时,导出的不是一段 css 代码了,事实上是一个文件路径。
1056
1056
  const printedParam = printParams(media, dedupe, supports, layer)
1057
1057
  const otherParams = printedParam.length > 0 ? printedParam : ''
1058
-
1059
1058
  beforeCode += `___CSS_LOADER_EXPORT___.push([module.id, '@import "' + ${item.importName} + '";', ${JSON.stringify(otherParams)} ]);\n`
1060
1059
  }
1061
1060
  }
@@ -1231,14 +1230,11 @@ async function resolveRequests (resolve, context, possibleRequests) {
1231
1230
  })
1232
1231
  }
1233
1232
 
1234
-
1235
1233
  function isURLRequestable (url, options = {}) {
1236
-
1237
1234
  // 先用 mpx 内部维护方法判断
1238
- if( !isUrlRequest(url, options.root, options.externals) ) {
1235
+ if (!isUrlRequest(url, options.root, options.externals)) {
1239
1236
  return { requestable: false, needResolve: false }
1240
1237
  }
1241
-
1242
1238
  // Protocol-relative URLs
1243
1239
  if (/^\/\//.test(url)) {
1244
1240
  return { requestable: false, needResolve: false }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.7.54",
3
+ "version": "2.7.55",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -80,5 +80,5 @@
80
80
  "engines": {
81
81
  "node": ">=14.14.0"
82
82
  },
83
- "gitHead": "cf74ccfac7ec2b12a856b003a5ccbcad89b6144e"
83
+ "gitHead": "988b3f83c36ba5280ee7d050fc8b610ae4f3ad86"
84
84
  }