@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-32920211122003 → 2.0.1-alpha-33120211213001

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.
@@ -56,14 +56,14 @@ if (isSass) {
56
56
  }
57
57
 
58
58
  const scssLoader = {
59
- loader: 'sass-loader',
59
+ loader: '@dcloudio/vue-cli-plugin-uni/packages/sass-loader',
60
60
  options: {
61
61
  sourceMap: false
62
62
  }
63
63
  }
64
64
 
65
65
  const sassLoader = {
66
- loader: 'sass-loader',
66
+ loader: '@dcloudio/vue-cli-plugin-uni/packages/sass-loader',
67
67
  options: {
68
68
  sourceMap: false
69
69
  }
@@ -84,7 +84,8 @@ const plugins = [
84
84
  UNI_PLATFORM: JSON.stringify(process.env.UNI_PLATFORM),
85
85
  VUE_APP_PLATFORM: JSON.stringify(process.env.UNI_PLATFORM),
86
86
  UNI_CLOUD_PROVIDER: process.env.UNI_CLOUD_PROVIDER,
87
- HBX_USER_TOKEN: JSON.stringify(process.env.HBX_USER_TOKEN || ''),
87
+ UNICLOUD_DEBUG: process.env.UNICLOUD_DEBUG,
88
+ RUN_BY_HBUILDERX: process.env.RUN_BY_HBUILDERX,
88
89
  UNI_AUTOMATOR_WS_ENDPOINT: JSON.stringify(process.env.UNI_AUTOMATOR_WS_ENDPOINT)
89
90
  }
90
91
  }),
@@ -267,6 +268,18 @@ if (process.env.UNI_USING_NATIVE || process.env.UNI_USING_V3_NATIVE) {
267
268
  plugins.push(new CopyWebpackPlugin(array))
268
269
  }
269
270
 
271
+ try {
272
+ if (process.env.UNI_HBUILDERX_PLUGINS) {
273
+ require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers/lib/bytenode'))
274
+ const {
275
+ W
276
+ } = require(path.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uni_helpers'))
277
+ plugins.push(new W({
278
+ dir: process.env.UNI_INPUT_DIR
279
+ }))
280
+ }
281
+ } catch (e) {}
282
+
270
283
  module.exports = function () {
271
284
  return {
272
285
  target: 'node', // 激活 vue-loader 的 isServer 逻辑
@@ -376,4 +389,4 @@ module.exports = function () {
376
389
  zlib: false
377
390
  }
378
391
  }
379
- }
392
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-hbuilderx",
3
- "version": "2.0.1-32920211122003",
3
+ "version": "2.0.1-alpha-33120211213001",
4
4
  "description": "HBuilderX plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,5 +18,5 @@
18
18
  "css": "~2.2.1",
19
19
  "escodegen": "^1.8.1"
20
20
  },
21
- "gitHead": "547072012788a28569b9b8d073b22715a9f6dbb1"
21
+ "gitHead": "2acaa84a4710ba970d24c29395446788d6765e5b"
22
22
  }