@dcloudio/vue-cli-plugin-uni 2.0.2-alpha-4010120240330001 → 2.0.2-alpha-4010220240409001

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,9 +7,10 @@ module.exports = function (url, options) {
7
7
  } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
8
8
 
9
9
  url = url && url.__esModule ? url.default : url
10
-
10
+ let isAbsoluteFile = false
11
11
  if (typeof url !== 'string') {
12
12
  if (url.protocol && url.protocol === 'file:' && url.pathname) {
13
+ isAbsoluteFile = true
13
14
  url = url.pathname
14
15
  } else {
15
16
  return url
@@ -30,8 +31,11 @@ module.exports = function (url, options) {
30
31
  if (/["'() \t\n]/.test(url) || options.needQuotes) {
31
32
  return '"'.concat(url.replace(/"/g, '\\"').replace(/\n/g, '\\n'), '"')
32
33
  }
34
+ if (isAbsoluteFile) {
35
+ return url
36
+ }
33
37
  if (url.indexOf('/') === 0) {
34
38
  return url.substr(1)
35
39
  }
36
40
  return url
37
- }
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-uni",
3
- "version": "2.0.2-alpha-4010120240330001",
3
+ "version": "2.0.2-alpha-4010220240409001",
4
4
  "description": "uni-app plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "author": "fxy060608",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcloudio/uni-stat": "^2.0.2-alpha-4010120240330001",
20
+ "@dcloudio/uni-stat": "^2.0.2-alpha-4010220240409001",
21
21
  "buffer-json": "^2.0.0",
22
22
  "clone-deep": "^4.0.1",
23
23
  "cross-env": "^5.2.0",
@@ -41,5 +41,5 @@
41
41
  "copy-webpack-plugin": ">=5",
42
42
  "postcss": ">=7"
43
43
  },
44
- "gitHead": "14a2006de91f3268f24faaa17ec7f3e2bb56218f"
44
+ "gitHead": "5c6861534ec42d71c60d2edb9fc305fda3c79f6b"
45
45
  }