Justineo / vue-octicon

Octicon component for Vue.js, using inline SVG.
https://justineo.github.io/vue-octicon/demo/
MIT License
125 stars 14 forks source link

Use of reserved word 'let' in strict mode #6

Open Overdrivr opened 6 years ago

Overdrivr commented 6 years ago

If I import vue-octicon inside a component, I get the following error during testing (by running unit tests generated with vue-loader )


<script>
import Octicon from 'vue-octicon/components/Octicon'
import 'vue-octicon/icons'

export default {
  name: 'hello',
  components: {
     'octicon': Octicon
  },
  data () {
     return {}
  }
}
SyntaxError: Use of reserved word 'let' in strict mode
  at webpack:///node_modules/vue-octicon/util.js:3:0

Any idea on how to solve this ?