airyland / vux-loader

hack into vue-loader
64 stars 37 forks source link

[Bug Report] 使用vux-loader之后所有vue组件script标签内的代码都会执行两次 #65

Open ghost opened 6 years ago

ghost commented 6 years ago

vux-loader version

1.2.9

OS/Browsers version

MacOS Chrome

Vue version

2.5.16

Code

<template>
  <div id="app">
    hello world
  </div>
</template>

<script>
console.log('重复执行测试')
export default {
  name: 'App'
}
</script>

Steps to reproduce

  1. 通过vue-cli的webpack模版初始化一个空项目
  2. 在App.vue的 Githubissues.
  3. Githubissues is a development platform for aggregating issues.