Skip to content

Commit 2b0b09a

Browse files
committed
FIX FOR FREKIN ASYNCS
1 parent acfe5ec commit 2b0b09a

File tree

12 files changed

+22
-1188
lines changed

12 files changed

+22
-1188
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ yarn add vue-simple-suggest
134134
### Unpkg
135135

136136
```html
137-
<!-- UMD Component, without polyfills -->
137+
<!-- UMD Component, async/await polyfills through promises -->
138138
<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest/dist/umd.js"></script>
139139
<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest@1.5.1/dist/umd.js"></script>
140140
<!-- Specific version -->
@@ -164,7 +164,7 @@ import VueSimpleSuggest from 'vue-simple-suggest/dist/es6'
164164
import VueSimpleSuggest from 'vue-simple-suggest/dist/es7'
165165
///
166166

167-
/// CommonJS (async and promises are polyfilled)
167+
/// CommonJS (async, Object.assign and promises are polyfilled)
168168
const VueSimpleSuggest = require('vue-simple-suggest')
169169
// or, if you have problems importing:
170170
const VueSimpleSuggest = require('vue-simple-suggest/dist/cjs')

build/bundles.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = exports = {
1616
}
1717
},
1818
iife: {
19-
// compress: true,
19+
compress: true,
2020
polyfills: {
2121
arrows: true,
2222
assign: true,
@@ -25,8 +25,9 @@ module.exports = exports = {
2525
}
2626
},
2727
umd: {
28-
// compress: true,
28+
compress: true,
2929
polyfills: {
30+
async: true,
3031
arrows: true
3132
}
3233
}

build/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ module.exports = exports = function(
3333
css({ output: 'dist/styles.css' }),
3434
babel({
3535
exclude: 'node_modules/**',
36-
runtimeHelpers: true,
37-
presets: polyfills.arrows ? ['stage-0', 'es2015-rollup'] : [],
36+
runtimeHelpers: false,
37+
presets: polyfills.arrows ? ['stage-3', 'es2015-rollup'] : [],
3838
plugins: babelPlugins
3939
}),
4040
nodeResolve({ browser: true, jsnext: true, main: true }),

dist/cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
8383
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8484
};
8585

86-
function _finally(value, finalizer) {
86+
function _finally(body, finalizer) {
8787
try {
8888
var result = body();
8989
} catch (e) {

dist/es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function hasKeyCode(arr, event) {
6767
}
6868
}
6969

70-
function _finally(value, finalizer) {
70+
function _finally(body, finalizer) {
7171
try {
7272
var result = body();
7373
} catch (e) {

0 commit comments

Comments
 (0)