@tarojs/taro-loader 3.6.2-canary.0 → 3.6.2-canary.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/h5.js +3 -3
  2. package/package.json +3 -3
package/lib/h5.js CHANGED
@@ -45,15 +45,15 @@ function default_1() {
45
45
  const compPath = (0, path_1.join)(pathDirname, options.filename);
46
46
  return `import component from ${stringify(compPath)}
47
47
  component.config = {}
48
- component.pxTransformconfig = {}
49
- Objext.assign(component.config, ${JSON.stringify((0, helper_1.readConfig)(this.resourcePath))})
48
+ component.pxTransformConfig = {}
49
+ Object.assign(component.config, ${JSON.stringify((0, helper_1.readConfig)(this.resourcePath))})
50
50
  initPxTransform({
51
51
  designWidth: ${pxTransformConfig.designWidth},
52
52
  deviceRatio: ${JSON.stringify(pxTransformConfig.deviceRatio)},
53
53
  baseFontSize: ${pxTransformConfig.baseFontSize || (pxTransformConfig.minRootSize >= 1 ? pxTransformConfig.minRootSize : 20)},
54
54
  unitPrecision: ${pxTransformConfig.unitPrecision},
55
55
  targetUnit: ${JSON.stringify(pxTransformConfig.targetUnit)}
56
- }).bind(component)
56
+ }).call(component)
57
57
  export default component`;
58
58
  }
59
59
  let tabBarCode = `var tabbarIconPath = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro-loader",
3
- "version": "3.6.2-canary.0",
3
+ "version": "3.6.2-canary.1",
4
4
  "description": "Taro runner use webpack loader",
5
5
  "author": "yuche <i@yuche.me>",
6
6
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-loader#readme",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "loader-utils": "^1.2.3",
25
- "@tarojs/helper": "3.6.2-canary.0",
26
- "@tarojs/taro": "3.6.2-canary.0"
25
+ "@tarojs/helper": "3.6.2-canary.1",
26
+ "@tarojs/taro": "3.6.2-canary.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "jest": "^29.3.1",