@ray-js/builder-mp 1.4.9 → 1.4.11
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.
@@ -1,5 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const path_1 = __importDefault(require("path"));
|
3
7
|
const builder_1 = require("../builder");
|
4
8
|
exports.default = {
|
5
9
|
name: 'old-project-module-resolve-legacy',
|
@@ -18,7 +22,12 @@ exports.default = {
|
|
18
22
|
]
|
19
23
|
} plugin instead.`);
|
20
24
|
Object.entries(resolveConfig).forEach(([key, value]) => {
|
21
|
-
|
25
|
+
if (path_1.default.isAbsolute(value)) {
|
26
|
+
config.resolve.alias.set(key, value);
|
27
|
+
}
|
28
|
+
else {
|
29
|
+
config.resolve.alias.set(key, path_1.default.resolve(builder_1.builder.options.cwd, value));
|
30
|
+
}
|
22
31
|
});
|
23
32
|
}
|
24
33
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/builder-mp",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.11",
|
4
4
|
"description": "Ray builder for mini program",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -33,10 +33,10 @@
|
|
33
33
|
"@ray-core/build-store": "^0.3.6",
|
34
34
|
"@ray-core/cli": "^0.3.6",
|
35
35
|
"@ray-core/ray": "^0.3.6",
|
36
|
-
"@ray-js/adapter": "1.4.
|
36
|
+
"@ray-js/adapter": "^1.4.11",
|
37
37
|
"@ray-js/rjs-for-wechat": "^0.0.3",
|
38
|
-
"@ray-js/shared": "1.4.
|
39
|
-
"@ray-js/types": "1.4.
|
38
|
+
"@ray-js/shared": "^1.4.11",
|
39
|
+
"@ray-js/types": "^1.4.11",
|
40
40
|
"babel-loader": "^8.3.0",
|
41
41
|
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
|
42
42
|
"babel-plugin-transform-prune-unused-imports": "^1.0.1",
|
@@ -65,5 +65,5 @@
|
|
65
65
|
"access": "public",
|
66
66
|
"registry": "https://registry.npmjs.org"
|
67
67
|
},
|
68
|
-
"gitHead": "
|
68
|
+
"gitHead": "3afff1b2904abf0f7847567de460bf4c02e5853e"
|
69
69
|
}
|