-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postMessage): avoid using postMessage when feasible
Before this commit, we were using setImmediate which was then polyfilled by webpack in a way that is not efficient and led to issues like #142 where postMessage was used no matter what. Now we use the `immediate` dependency which will first try to use nextTick, then mutation observers (IE11) then fallback to postMessage but in a way that should not bug any user registering for global messages. fixes #142
- Loading branch information
vvo
committed
Jan 20, 2017
1 parent
4d5910a
commit a99f664
Showing
3 changed files
with
9 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2527,6 +2527,10 @@ ieee754@^1.1.4: | |
version "1.1.8" | ||
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4" | ||
|
||
immediate@^3.2.3: | ||
version "3.2.3" | ||
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.2.3.tgz#d140fa8f614659bd6541233097ddaac25cdd991c" | ||
|
||
indent-string@^2.0.0, indent-string@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" | ||
|
@@ -3573,15 +3577,15 @@ [email protected], minimist@~0.0.1, minimist@~0.0.7: | |
version "0.0.8" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" | ||
|
||
[email protected], minimist@^1.1.3, minimist@^1.2.0: | ||
[email protected], minimist@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" | ||
|
||
minimist@^0.2.0: | ||
version "0.2.0" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.2.0.tgz#4dffe525dae2b864c66c2e23c6271d7afdecefce" | ||
|
||
minimist@~1.1.0: | ||
minimist@^1.1.3, minimist@~1.1.0: | ||
version "1.1.3" | ||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.1.3.tgz#3bedfd91a92d39016fcfaa1c681e8faa1a1efda8" | ||
|
||
|