@ray-js/builder-mp 1.5.24 → 1.5.26

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.
@@ -12,7 +12,7 @@ exports.default = {
12
12
  const resolveConfig = builder_1.builder.api.config.resolveAlias;
13
13
  // 兼容老项目中的老配置
14
14
  if (resolveConfig) {
15
- process.emitWarning(`config.resolveAlias has deprecated!, please use {
15
+ process.emitWarning(`config.resolveAlias has deprecated in webpack mode!, please use {
16
16
  plugins: [
17
17
  {
18
18
  configWebpack({ config }) {
@@ -30,5 +30,18 @@ exports.default = {
30
30
  }
31
31
  });
32
32
  }
33
+ const define = builder_1.builder.api.config.define;
34
+ if (define) {
35
+ process.emitWarning(`config.define has deprecated in webpack mode!, please use {
36
+ plugins: [
37
+ {
38
+ configWebpack({ config }) {
39
+ config.plugin('your-define').use(DefinePlugin, [define])
40
+ }
41
+ }
42
+ ]
43
+ } plugin instead.`);
44
+ config.plugin('ray-define').use(require('webpack').DefinePlugin, [define]);
45
+ }
33
46
  },
34
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/builder-mp",
3
- "version": "1.5.24",
3
+ "version": "1.5.26",
4
4
  "description": "Ray builder for mini program",
5
5
  "keywords": [
6
6
  "ray"
@@ -33,10 +33,10 @@
33
33
  "@ray-core/build-store": "^0.4.5",
34
34
  "@ray-core/cli": "^0.4.5",
35
35
  "@ray-core/ray": "^0.4.5",
36
- "@ray-js/adapter": "1.5.24",
36
+ "@ray-js/adapter": "1.5.26",
37
37
  "@ray-js/rjs-for-wechat": "^0.0.3",
38
- "@ray-js/shared": "1.5.24",
39
- "@ray-js/types": "1.5.24",
38
+ "@ray-js/shared": "1.5.26",
39
+ "@ray-js/types": "1.5.26",
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",
@@ -66,5 +66,5 @@
66
66
  "access": "public",
67
67
  "registry": "https://registry.npmjs.com"
68
68
  },
69
- "gitHead": "954dac21738de0ffad38ea5c7a00fb56149291f5"
69
+ "gitHead": "779a1ed43d28b46191e9c2a4044795700489f7b3"
70
70
  }