@ray-js/builder-mp 0.10.0-beta.0 → 0.10.0-beta.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
@@ -105,6 +105,7 @@ class RjsBuilder {
105
105
  .end() // rjs模块需要导出给minipack 使用,蹩脚
106
106
  .optimization.runtimeChunk({ name: 'runtime-rjs' })
107
107
  .splitChunks({ cacheGroups });
108
+ cfg.output.delete('libraryExport');
108
109
  cfg.output.set('clean', false);
109
110
  const config = cfg.toConfig();
110
111
  config.entry = () => this.entries;
@@ -43,8 +43,9 @@ function configWebpack(context) {
43
43
  function reOverloadNativeAppConstructor(config) {
44
44
  const app = overloadNativeAppConstructor(config);
45
45
  return function(opts) {
46
- opts && opts.subPackageRoot && router.setUrlPrefix(opts.subPackageRoot);
47
- return app(opts);
46
+ const cfg = app(opts);
47
+ cfg.asSubPackageRuntimeOptions && router.setUrlPrefix(cfg.asSubPackageRuntimeOptions.subPackageRoot);
48
+ return cfg;
48
49
  }
49
50
  }
50
51
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/builder-mp",
3
- "version": "0.10.0-beta.0",
3
+ "version": "0.10.0-beta.1",
4
4
  "description": "Ray builder for mini program",
5
5
  "keywords": [
6
6
  "ray"
@@ -24,14 +24,14 @@
24
24
  "@babel/template": "^7.16.0",
25
25
  "@babel/traverse": "^7.16.3",
26
26
  "@babel/types": "^7.16.0",
27
- "@ray-core/babel-preset-remax": "^0.2.0-beta.2",
28
- "@ray-core/build-store": "^0.2.0-beta.2",
29
- "@ray-core/cli": "^0.2.0-beta.2",
30
- "@ray-core/ray": "^0.2.0-beta.2",
31
- "@ray-js/adapter": "^0.10.0-beta.0",
27
+ "@ray-core/babel-preset-remax": "^0.2.0-beta.3",
28
+ "@ray-core/build-store": "^0.2.0-beta.3",
29
+ "@ray-core/cli": "^0.2.0-beta.3",
30
+ "@ray-core/ray": "^0.2.0-beta.3",
31
+ "@ray-js/adapter": "^0.10.0-beta.1",
32
32
  "@ray-js/rjs-for-wechat": "^0.0.3",
33
- "@ray-js/shared": "^0.10.0-beta.0",
34
- "@ray-js/types": "^0.10.0-beta.0",
33
+ "@ray-js/shared": "^0.10.0-beta.1",
34
+ "@ray-js/types": "^0.10.0-beta.1",
35
35
  "babel-loader": "^8.2.3",
36
36
  "babel-plugin-minify-dead-code-elimination": "^0.5.1",
37
37
  "babel-plugin-transform-prune-unused-imports": "^1.0.1",
@@ -48,7 +48,7 @@
48
48
  "webpack-virtual-modules": "^0.4.4"
49
49
  },
50
50
  "devDependencies": {
51
- "@ray-core/types": "^0.2.0-beta.2",
51
+ "@ray-core/types": "^0.2.0-beta.3",
52
52
  "@types/jest": "^27.0.2",
53
53
  "@types/node": "^16.9.1",
54
54
  "babel-plugin-tester": "^10.1.0",
@@ -62,6 +62,6 @@
62
62
  "email": "tuyafe@tuya.com"
63
63
  }
64
64
  ],
65
- "gitHead": "84f7689f7ab2bb23abf6a7dd48ac0cce03127cb2",
65
+ "gitHead": "40d4e017eb29c84ede4182f61f97566a25ae93ec",
66
66
  "repository": {}
67
67
  }