@dcloudio/uni-template-compiler 2.0.2-alpha-4010320240419001 → 2.0.2-alpha-4010320240419002

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.
@@ -111,7 +111,7 @@ const compilerModule = {
111
111
  if (process.env.UNI_PLATFORM === 'quickapp-native') {
112
112
  // 排查所有标签
113
113
  (options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
114
- } else if (isComponent(el.tag, options.mp.platform) && el.tag !== 'App') { // App.vue
114
+ } else if (isComponent(el.tag, options.mp && options.mp.platform) && el.tag !== 'App') { // App.vue
115
115
  // 挂在 isUnaryTag 上边,可以保证外部访问到
116
116
  (options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
117
117
  }
package/lib/index.js CHANGED
@@ -67,7 +67,7 @@ module.exports = {
67
67
  options.optimize = false // 启用 staticRenderFns
68
68
  // domProps => attrs
69
69
  options.mustUseProp = () => false
70
- options.isReservedTag = (tagName) => !isComponent(tagName, options.mp.platform) // 非组件均为内置
70
+ options.isReservedTag = (tagName) => !isComponent(tagName, options.mp && options.mp.platform) // 非组件均为内置
71
71
  options.getTagNamespace = () => false
72
72
 
73
73
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-template-compiler",
3
- "version": "2.0.2-alpha-4010320240419001",
3
+ "version": "2.0.2-alpha-4010320240419002",
4
4
  "description": "uni-template-compiler",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "@babel/types": "^7.3.3",
24
24
  "vue-template-compiler": "^2.6.10"
25
25
  },
26
- "gitHead": "71d8f0c189999783de7c565fa68856a559bb059e"
26
+ "gitHead": "a80020697eeabe512d66d781e65809490cfbf11f"
27
27
  }