Browse Source

fix warning about custom component

Henry Jameson 2 years ago
parent
commit
a3f48fc3f4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      build/webpack.base.conf.js

+ 6 - 0
build/webpack.base.conf.js

@@ -64,6 +64,12 @@ module.exports = {
         loader: 'vue-loader',
         options: {
           compilerOptions: {
+            isCustomElement(tag) {
+              if (tag === 'pinch-zoom') {
+                return true
+              }
+              return false
+            },
             compatConfig: {
               MODE: 2
             }