@ray-js/builder-mp 0.5.9-beta-1 → 0.5.10-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.
Files changed (2) hide show
  1. package/lib/build.js +27 -24
  2. package/package.json +5 -5
package/lib/build.js CHANGED
@@ -123,30 +123,33 @@ function build(options, context) {
123
123
  .end()
124
124
  .end()
125
125
  // hooks
126
- .rule('ray-hooks')
127
- .test(moduleMatcher)
128
- .exclude.add((m) => /\.rjs/i.test(m) || /node_modules\/(react|react-reconciler|react-dom)/.test(m))
129
- .end()
130
- .pre()
131
- .use('hooks-loader')
132
- .loader(require.resolve('babel-loader'))
133
- .options({
134
- babelrc: false,
135
- presets: ['@babel/preset-typescript'],
136
- plugins: [
137
- // 替换 usePageEvent useAppEvent hooks api 模块名
138
- [require.resolve('./babel/plugins/ray-hooks/index')],
139
- '@babel/plugin-syntax-jsx',
140
- [
141
- '@babel/plugin-proposal-decorators',
142
- {
143
- legacy: true,
144
- },
145
- ],
146
- ],
147
- })
148
- .end()
149
- .end()
126
+ // .rule('ray-hooks')
127
+ // .test(moduleMatcher)
128
+ // .exclude.add(
129
+ // (m: string) =>
130
+ // /\.rjs/i.test(m) || /node_modules\/(react|react-reconciler|react-dom)/.test(m)
131
+ // )
132
+ // .end()
133
+ // .pre()
134
+ // .use('hooks-loader')
135
+ // .loader(require.resolve('babel-loader'))
136
+ // .options({
137
+ // babelrc: false,
138
+ // presets: ['@babel/preset-typescript'],
139
+ // plugins: [
140
+ // // 替换 usePageEvent useAppEvent hooks api 模块名
141
+ // [require.resolve('./babel/plugins/ray-hooks/index')],
142
+ // '@babel/plugin-syntax-jsx',
143
+ // [
144
+ // '@babel/plugin-proposal-decorators',
145
+ // {
146
+ // legacy: true,
147
+ // },
148
+ // ],
149
+ // ],
150
+ // })
151
+ // .end()
152
+ // .end()
150
153
  // env-loader 将 isTuya 根据platform 转成 var isTuya = true 或 false
151
154
  .rule('env-loader')
152
155
  .test(moduleMatcher)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/builder-mp",
3
- "version": "0.5.9-beta-1",
3
+ "version": "0.5.10-beta-1",
4
4
  "description": "Ray builder for mini program",
5
5
  "keywords": [
6
6
  "ray"
@@ -28,9 +28,9 @@
28
28
  "@ray-core/build-store": "^0.0.x",
29
29
  "@ray-core/cli": "^0.0.x",
30
30
  "@ray-core/ray": "^0.0.x",
31
- "@ray-js/adapter": "^0.5.9-beta-1",
32
- "@ray-js/shared": "^0.5.9-beta-1",
33
- "@ray-js/types": "^0.5.9-beta-1",
31
+ "@ray-js/adapter": "^0.5.10-beta-1",
32
+ "@ray-js/shared": "^0.5.10-beta-1",
33
+ "@ray-js/types": "^0.5.10-beta-1",
34
34
  "babel-loader": "^8.2.3",
35
35
  "babel-plugin-minify-dead-code-elimination": "^0.5.1",
36
36
  "babel-plugin-transform-prune-unused-imports": "^1.0.1",
@@ -61,6 +61,6 @@
61
61
  "email": "tuyafe@tuya.com"
62
62
  }
63
63
  ],
64
- "gitHead": "45232c09ae46aee3f29663e455158965ad329ff3",
64
+ "gitHead": "269dad23e6a4cbbc8289142e6a60cc2586e4c130",
65
65
  "repository": {}
66
66
  }