aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/package.json11
-rw-r--r--vnext/src/utils/embed.js8
-rw-r--r--vnext/yarn.lock12
3 files changed, 23 insertions, 8 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 55fb38b7..8664ca18 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -66,11 +66,20 @@
"@babel/plugin-syntax-dynamic-import"
],
"presets": [
- "@babel/preset-env",
+ [
+ "@babel/preset-env",
+ {
+ "useBuiltIns": "usage",
+ "targets": {
+ "browsers": "ie >=9, android >= 4.2"
+ }
+ }
+ ],
"@babel/preset-react"
]
},
"dependencies": {
+ "@babel/polyfill": "^7.0.0",
"axios": "^0.18.0",
"immutability-helper": "^2.8.1",
"moment": "^2.22.2",
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js
index 25c37142..d4cbab8e 100644
--- a/vnext/src/utils/embed.js
+++ b/vnext/src/utils/embed.js
@@ -285,7 +285,7 @@ function embedLinks(aNodes, container) {
* @param {string} beforeNodeSelector
* @param {string} allLinksSelector
*/
-function embedLinksToX(x, beforeNodeSelector, allLinksSelector) {
+export function embedLinksToX(x, beforeNodeSelector, allLinksSelector) {
let isCtsPost = false;
let allLinks = x.querySelectorAll(allLinksSelector);
@@ -323,7 +323,7 @@ function embedLinksToPost() {
/**
* Embed all the links in all messages/replies on the page.
*/
-function embedAll() {
+export function embedAll() {
if (document.querySelector('#content article[data-mid]')) {
embedLinksToArticles();
} else {
@@ -331,6 +331,4 @@ function embedAll() {
}
}
-exports.embedAll = embedAll;
-exports.embedLinksToX = embedLinksToX;
-exports.format = juickFormat;
+export const format = juickFormat;
diff --git a/vnext/yarn.lock b/vnext/yarn.lock
index 2d7047c1..6fcc9267 100644
--- a/vnext/yarn.lock
+++ b/vnext/yarn.lock
@@ -626,6 +626,14 @@
"@babel/helper-regex" "^7.0.0"
regexpu-core "^4.1.3"
+"@babel/polyfill@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.0.0.tgz#c8ff65c9ec3be6a1ba10113ebd40e8750fb90bff"
+ integrity sha512-dnrMRkyyr74CRelJwvgnnSUDh2ge2NCTyHVwpOdvRMHtJUyxLtMAfhBN3s64pY41zdw0kgiLPh6S20eb1NcX6Q==
+ dependencies:
+ core-js "^2.5.7"
+ regenerator-runtime "^0.11.1"
+
"@babel/preset-env@7.1.0":
version "7.1.0"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.1.0.tgz#e67ea5b0441cfeab1d6f41e9b5c79798800e8d11"
@@ -2171,7 +2179,7 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
-core-js@^2.4.0, core-js@^2.5.0:
+core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.7:
version "2.5.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"
integrity sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==
@@ -7252,7 +7260,7 @@ regenerate@^1.2.1, regenerate@^1.4.0:
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11"
integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==
-regenerator-runtime@^0.11.0:
+regenerator-runtime@^0.11.0, regenerator-runtime@^0.11.1:
version "0.11.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==