Commit graph

19 commits

Author SHA1 Message Date
rschamp
735042c414 Revert "Merge pull request from LLK/revert-6243-hotfix/dynamic-intl-polyfill"
This reverts commit 42712bd636, reversing
changes made to f152df774f.
2021-11-08 11:50:18 -05:00
chrisgarrity
55d2a389e4
Revert "Replace static plural rule and relative time polyfills with a dynamic import" 2021-11-01 13:33:30 -04:00
Chris Garrity
cb968f3842 [WIP] preliminary intl polyfill
partial implementation of intl-polyfill. Doesn't include all the www langauges, and we don't want to have to update www each time there is a language added, so this needs to move into scratch-l10n somehow.

polyfill.min.js no longer needs the intl.js polyfill, so removed. Should still look at whether the other parts of polyfill.min are needed, but they're unrelated to intl.
2021-08-25 11:13:24 -04:00
Paul Kaplan
ee4268af15 Add es6-promise polyfill to fix browsers lacking promise.finally
This fixes an issue where projects could not be loaded on Edge
2018-12-03 09:32:27 -05:00
Ray Schamp
25a0c5b729 Add Object.assign polyfill
Fixes IE11 Splash page error
2018-04-03 14:31:41 -04:00
Ray Schamp
cc041c2550 Update Symbol polyfill to actual minified version 2018-04-02 14:53:05 -04:00
Ray Schamp
827942f910 Update ES6 Symbol polyfill
Apparently the one we are using isn't sufficient for one of our dependencies coming with scratch-gui, so update to a different one that is sufficient.
2018-03-30 10:51:22 -04:00
Ray Schamp
0a6092bde8 Add Symbol polyfill 2018-01-31 10:01:14 -05:00
Ray Schamp
295a1045cd Add polyfills for formsy-react-components
This module now requires polyfills for Set and Array.from: https://github.com/twisty/formsy-react-components#browser-support
2018-01-30 20:22:19 -05:00
Ray Schamp
884e9ff4a7 Don't bundle polyfills
They are inherently global, so don't belong in the domain of webpack.
2016-05-17 21:02:36 -04:00
Ray Schamp
8f2697b7f1 Move externals, polyfill and init to common chunk
This should allow us to define and update our dependencies more easily (via npm) as well as reducing the number of requests.

Additionally, when we add common packages this will avoid the issue after deploys where a user may get a cached HTML page, but new Javascript, leading to the dreaded blank page because the browser didn't download all dependencies.

Using mangle with UglifyJS also made the total file size for the common chunk bundle smaller than the current total for all of our external/polyfill scripts (1.18MB vs 1.55MB).
2016-05-16 12:59:58 -04:00
Ray Schamp
96bc1b1ab1 Add method for reading session cookie
Assumes the session cookie is stored as JSON which may or may not have been compressed via zlib (indicated by a leading `.`), which is then base64-encoded, and made URL-safe by replacing all `+` and `/` characters with `-` and `_` respectively.
2016-03-22 09:11:09 -04:00
Ray Schamp
a5e336a175 Use redux for session handling 2016-03-18 11:51:22 -04:00
Matthew Taylor
133e42de06 Update to beta 1
locales configuration not loaded automatically anymore, so we need to load react-intl with locales included into the browser ahead of time
2015-11-19 15:25:39 -05:00
Ray Schamp
aa2eeab353 Log Javascript errors to Sentry 2015-11-06 17:08:50 -05:00
Andrew Sliwinski
d86703e5db Add window.Intl polyfill. Resolves GH-96 2015-10-21 20:49:31 -04:00
Andrew Sliwinski
578e1afab8 Add 'matchMedia' polyfill. Resolves GH-56 2015-10-16 12:05:27 -04:00
Matthew Taylor
c3b62c8f05 Update core react dependencies 2015-10-14 22:59:38 -04:00
Andrew Sliwinski
fa4fce1b1c Initial commit 2015-09-02 12:08:58 -07:00