@tarojs/plugin-platform-harmony-cpp 4.1.3-beta.0 → 4.1.4-beta.0

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/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var utils = require('@tarojs/vite-runner/dist/utils');
15
15
  var parseCssToStylesheet = require('@tarojs/parse-css-to-stylesheet');
16
16
  var constants = require('@tarojs/vite-runner/dist/harmony/postcss/constants');
17
17
 
18
- var version = "4.1.3-beta.0";
18
+ var version = "4.1.4-beta.0";
19
19
 
20
20
  const PKG_NAME = '@taro-oh/library';
21
21
  const PKG_VERSION = version;
@@ -170,15 +170,16 @@ function appPlugin () {
170
170
  };
171
171
  }
172
172
 
173
- function injectEnv (platform) {
173
+ function injectEnv () {
174
+ const that = this;
174
175
  const packageName = '@tarojs/taro';
175
176
  const bindingName = 'Taro';
176
- const businessId = platform.getConfig().defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
177
+ const businessId = this.config.defineConstants?.LOCATION_APIKEY?.replace(/^['"]|['"]$/g, '');
177
178
  return {
178
179
  name: 'taro:vite-add-method-env',
179
180
  transform(code, id) {
180
181
  const pluginContext = this;
181
- const { runnerUtils } = platform.context;
182
+ const { runnerUtils } = that.context;
182
183
  const { getViteHarmonyCompilerContext } = runnerUtils;
183
184
  const compiler = getViteHarmonyCompilerContext(pluginContext);
184
185
  const exts = Array.from(new Set(compiler?.frameworkExts.concat(helper.SCRIPT_EXT)));
@@ -1313,5 +1314,4 @@ function assertHarmonyConfig(ctx, config) {
1313
1314
  }
1314
1315
  }
1315
1316
 
1316
- exports.HarmonyCPP = Harmony;
1317
1317
  exports.default = index;