@aiot-toolkit/aiotpack 2.0.2-beta.6 → 2.0.2-beta.8
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/compiler/javascript/JavascriptCompiler.js +2 -2
- package/lib/compiler/javascript/vela/utils/webpackLoader/extractMapData.d.ts +3 -0
- package/lib/compiler/javascript/vela/utils/webpackLoader/{splitMap.js → extractMapData.js} +2 -2
- package/lib/utils/ux/UxLoaderUtils.js +1 -1
- package/package.json +5 -5
- package/lib/compiler/javascript/vela/utils/webpackLoader/splitMap.d.ts +0 -3
|
@@ -77,10 +77,10 @@ class JavascriptCompiler {
|
|
|
77
77
|
module: {
|
|
78
78
|
rules: [
|
|
79
79
|
{
|
|
80
|
-
test: /\.
|
|
80
|
+
test: /\.ux$/,
|
|
81
81
|
use: [
|
|
82
82
|
{
|
|
83
|
-
loader: path_1.default.join(__dirname, '../javascript/vela/utils/webpackLoader/
|
|
83
|
+
loader: path_1.default.join(__dirname, '../javascript/vela/utils/webpackLoader/extractMapData.js')
|
|
84
84
|
}
|
|
85
85
|
]
|
|
86
86
|
}
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
function
|
|
8
|
+
function extractMapData(source, map) {
|
|
9
9
|
const enterFilePath = this.resourcePath;
|
|
10
10
|
// 获取当前文件夹和文件名
|
|
11
11
|
const dirName = path_1.default.dirname(enterFilePath);
|
|
@@ -17,4 +17,4 @@ function splitMap(source, map) {
|
|
|
17
17
|
}
|
|
18
18
|
this.callback(null, source, map && JSON.parse(map));
|
|
19
19
|
}
|
|
20
|
-
exports.default =
|
|
20
|
+
exports.default = extractMapData;
|
|
@@ -147,7 +147,7 @@ class UxLoaderUtils {
|
|
|
147
147
|
content: code
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
path: FileUtil_1.default.updatePath(filePath, `${name}.
|
|
150
|
+
path: FileUtil_1.default.updatePath(filePath, `${name}${ext}.map`),
|
|
151
151
|
content: sourceMap.toString()
|
|
152
152
|
},
|
|
153
153
|
...ImageResources
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/aiotpack",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.8",
|
|
4
4
|
"description": "The process tool for packaging aiot projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiotpack"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"test": "node ./__tests__/aiotpack.test.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aiot-toolkit/generator": "2.0.2-beta.
|
|
23
|
-
"@aiot-toolkit/parser": "2.0.2-beta.
|
|
22
|
+
"@aiot-toolkit/generator": "2.0.2-beta.8",
|
|
23
|
+
"@aiot-toolkit/parser": "2.0.2-beta.8",
|
|
24
24
|
"@hap-toolkit/aaptjs": "^2.0.0",
|
|
25
25
|
"babel-loader": "^9.1.3",
|
|
26
26
|
"del": "^4.1.0",
|
|
27
27
|
"fast-glob": "^3.3.2",
|
|
28
|
-
"file-lane": "2.0.2-beta.
|
|
28
|
+
"file-lane": "2.0.2-beta.8",
|
|
29
29
|
"file-loader": "^6.2.0",
|
|
30
30
|
"fs-extra": "^11.2.0",
|
|
31
31
|
"jsrsasign": "^7.2.2",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@types/jsrsasign": "^10.5.12",
|
|
42
42
|
"@types/webpack-sources": "^3.2.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "c1bbe0e0af46ec26ce5c2ab475d243428745b805"
|
|
45
45
|
}
|