diff --git a/.size-snapshot.json b/.size-snapshot.json index cf5825f4..fde1593e 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -1,13 +1,13 @@ { "dist/loadable.cjs.js": { - "bundled": 16361, - "minified": 7300, - "gzipped": 2563 + "bundled": 16354, + "minified": 7304, + "gzipped": 2565 }, "dist/loadable.esm.js": { - "bundled": 15982, - "minified": 6996, - "gzipped": 2497, + "bundled": 15975, + "minified": 7000, + "gzipped": 2495, "treeshaked": { "rollup": { "code": 276, diff --git a/src/loadableReady.js b/src/loadableReady.js index 83d4c8a6..c658b37f 100644 --- a/src/loadableReady.js +++ b/src/loadableReady.js @@ -62,7 +62,6 @@ export default function loadableReady( if (!resolved) { resolved = true resolve() - done() } } } @@ -73,5 +72,5 @@ export default function loadableReady( } checkReadyState() - }) + }).then(done); }