@aiot-toolkit/aiotpack 2.0.2-beta.7 → 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.
@@ -77,10 +77,10 @@ class JavascriptCompiler {
77
77
  module: {
78
78
  rules: [
79
79
  {
80
- test: /\.js$/,
80
+ test: /\.ux$/,
81
81
  use: [
82
82
  {
83
- loader: path_1.default.join(__dirname, '../javascript/vela/utils/webpackLoader/splitMap.js')
83
+ loader: path_1.default.join(__dirname, '../javascript/vela/utils/webpackLoader/extractMapData.js')
84
84
  }
85
85
  ]
86
86
  }
@@ -0,0 +1,3 @@
1
+ import { LoaderContext } from 'webpack';
2
+ declare function extractMapData(this: LoaderContext<any>, source: string, map: any): void;
3
+ export default extractMapData;
@@ -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 splitMap(source, map) {
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 = splitMap;
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}.js.map`),
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.7",
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.7",
23
- "@aiot-toolkit/parser": "2.0.2-beta.7",
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.7",
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": "dc37f9f6fbef3895d17b54ad41274c66f154f670"
44
+ "gitHead": "c1bbe0e0af46ec26ce5c2ab475d243428745b805"
45
45
  }
@@ -1,3 +0,0 @@
1
- import { LoaderContext } from 'webpack';
2
- declare function splitMap(this: LoaderContext<any>, source: string, map: any): void;
3
- export default splitMap;