@ray-js/builder-mp 1.4.60 → 1.4.61-beta.1

Sign up to get free protection for your applications and to get access to all the features.
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.4.60",
3
+ "version": "1.4.61-beta.1",
4
4
  "description": "Ray builder for mini program",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "@babel/template": "^7.24.0",
30
30
  "@babel/traverse": "^7.24.1",
31
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.4.60",
32
+ "@ray-core/babel-preset-remax": "^0.4.3",
33
+ "@ray-core/build-store": "^0.4.3",
34
+ "@ray-core/cli": "^0.4.3",
35
+ "@ray-core/ray": "^0.4.3",
36
+ "@ray-js/adapter": "^1.4.61-beta.1",
37
37
  "@ray-js/rjs-for-wechat": "^0.0.3",
38
- "@ray-js/shared": "1.4.60",
39
- "@ray-js/types": "1.4.60",
38
+ "@ray-js/shared": "^1.4.61-beta.1",
39
+ "@ray-js/types": "^1.4.61-beta.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.3",
58
58
  "@types/jest": "^29.5.12",
59
59
  "@types/node": "^20.11.30",
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": "fe03dd457a54ab78a75747bcb370a48213086b06"
69
+ "gitHead": "c1a776cd98053e3a5ea2ac058b96fbc35f6562b5"
70
70
  }