taoeffect / vue-script2

Standardized, designer-friendly <script> behavior for your Single Page App
171 stars 15 forks source link

version: '2.1.0', IE11 #36

Closed isvladxxe closed 5 years ago

isvladxxe commented 5 years ago

version: '2.1.0', broke the IE11

https://github.com/taoeffect/vue-script2/commit/798b050dc3329ec0c801e16e026f8e6b757a2975

dist/vue-script2.js

15 -  version: '2.0.3', // grunt will overwrite to match package.json
16 -  loaded: {}, // keys are the scripts that have been loaded
17 -  install: function install(Vue) {
15 +  version: '2.1.0',
16 +  // grunt will overwrite to match package.json
17 +  loaded: {},

19 +  // keys are the scripts that is loading or loaded, values are promises
20 +    install(Vue) { 

IE error: SCRIPT1003: Предполагается наличие ':'

in bundle:

/*!
  * vue-script2 v2.1.0
  * (c) 2016-2019 Greg Slepak
  * @license MIT License
  */
t.exports=function(){"use strict";var t={installed:!1,p:Promise.resolve(),version:"2.1.0",loaded:{},install(n){if(!t.installed)
taoeffect commented 5 years ago

If you need to support IE11 use the previous version. There isn't much difference between the two versions.