@ray-js/builder-mp 1.5.0 → 1.5.1

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/build.rjs.js CHANGED
@@ -33,7 +33,7 @@ class RjsBuild {
33
33
  config
34
34
  .context(cwd)
35
35
  .cache({
36
- type: 'filesystem',
36
+ type: 'filesystem', // 使用文件缓存
37
37
  cacheDirectory: path_1.default.join(cwd, 'node_modules', '.rjs_cache'),
38
38
  })
39
39
  .devtool('cheap-module-source-map')
@@ -35,7 +35,7 @@ class WorkerBuild {
35
35
  config
36
36
  .context(cwd)
37
37
  .cache({
38
- type: 'filesystem',
38
+ type: 'filesystem', // 使用文件缓存
39
39
  cacheDirectory: path_1.default.join(cwd, 'node_modules', '.workers_cache'),
40
40
  })
41
41
  .devtool('cheap-module-source-map')
@@ -52,8 +52,8 @@ function getRjsModule(compilation, p) {
52
52
  const { resource, rawRequest } = mc.module || {};
53
53
  if (resource === p) {
54
54
  return [
55
- m.resource,
56
- path_1.default.join(path_1.default.dirname(resource), rawRequest),
55
+ m.resource, // 引用rjs的模块
56
+ path_1.default.join(path_1.default.dirname(resource), rawRequest), // 引用的rjs模块
57
57
  rawRequest, // 引用rjs的模块中,import 的具体模块名
58
58
  ];
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/builder-mp",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Ray builder for mini program",
5
5
  "keywords": [
6
6
  "ray"
@@ -25,18 +25,18 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/plugin-transform-private-methods": "^7.24.1",
28
- "@babel/plugin-transform-private-property-in-object": "^7.24.1",
28
+ "@babel/plugin-transform-private-property-in-object": "^7.24.5",
29
29
  "@babel/template": "^7.24.0",
30
- "@babel/traverse": "^7.24.1",
31
- "@babel/types": "^7.24.0",
32
- "@ray-core/babel-preset-remax": "^0.4.0",
33
- "@ray-core/build-store": "^0.4.0",
34
- "@ray-core/cli": "^0.4.0",
35
- "@ray-core/ray": "^0.4.0",
36
- "@ray-js/adapter": "1.5.0",
30
+ "@babel/traverse": "^7.24.5",
31
+ "@babel/types": "^7.24.5",
32
+ "@ray-core/babel-preset-remax": "^0.4.5",
33
+ "@ray-core/build-store": "^0.4.5",
34
+ "@ray-core/cli": "^0.4.5",
35
+ "@ray-core/ray": "^0.4.5",
36
+ "@ray-js/adapter": "1.5.1",
37
37
  "@ray-js/rjs-for-wechat": "^0.0.3",
38
- "@ray-js/shared": "1.5.0",
39
- "@ray-js/types": "1.5.0",
38
+ "@ray-js/shared": "1.5.1",
39
+ "@ray-js/types": "1.5.1",
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",
@@ -54,17 +54,17 @@
54
54
  "webpack-virtual-modules": "^0.4.6"
55
55
  },
56
56
  "devDependencies": {
57
- "@ray-core/types": "^0.4.0",
57
+ "@ray-core/types": "^0.4.5",
58
58
  "@types/jest": "^29.5.12",
59
- "@types/node": "^20.11.30",
59
+ "@types/node": "^20.12.11",
60
60
  "babel-plugin-tester": "^10.1.0",
61
61
  "jest": "^29.7.0",
62
62
  "ts-jest": "^29.1.2",
63
- "typescript": "^4.9.5"
63
+ "typescript": "^5.4.5"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public",
67
67
  "registry": "https://registry.npmjs.org"
68
68
  },
69
- "gitHead": "acb0b960e4f0cda492b34c950bf9cd8d5b27ec8a"
69
+ "gitHead": "c72417d2eda79e7cb4a0ae547e0483eb72d6330f"
70
70
  }