Skip to content

Commit 8fffe33

Browse files
committed
Fix for older browsers
1 parent 9a255c6 commit 8fffe33

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
lines changed

babel.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
module.exports = {
2-
"presets": [["@babel/preset-env", {}]],
3-
"plugins": [
4-
["@babel/plugin-transform-runtime", {"corejs": 3}],
2+
presets: [["@babel/preset-env", {
3+
targets : "defaults",
4+
useBuiltIns: "usage",
5+
corejs: 3
6+
}]],
7+
plugins: [
8+
["@babel/plugin-transform-runtime", {corejs: 3}],
59
"@babel/plugin-proposal-class-properties"
610
]
711
}

dist/neovis-without-dependencies.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/neovis-without-dependencies.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/neovis.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/neovis.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neovis.js",
3-
"version": "2.0.0-alpha.0",
3+
"version": "2.0.0-alpha.2",
44
"description": "Graph visualizations powered by vis.js with data from Neo4j.",
55
"main": "./dist/neovis.js",
66
"module": "./dist/neovis-without-dependencies.js",
@@ -43,6 +43,7 @@
4343
"@babel/plugin-transform-runtime": "^7.12.15",
4444
"@babel/preset-env": "^7.12.13",
4545
"babel-loader": "^8.2.2",
46+
"core-js": "^3.9.0",
4647
"cross-env": "^7.0.3",
4748
"css-loader": "^5.0.1",
4849
"eslint": "^7.19.0",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,11 @@ core-js-pure@^3.0.0:
20532053
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.8.3.tgz#10e9e3b2592ecaede4283e8f3ad7020811587c02"
20542054
integrity sha512-V5qQZVAr9K0xu7jXg1M7qTEwuxUgqr7dUOezGaNa7i+Xn9oXAU/d1fzqD9ObuwpVQOaorO5s70ckyi1woP9lVA==
20552055

2056+
core-js@^3.9.0:
2057+
version "3.9.0"
2058+
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.9.0.tgz#790b1bb11553a2272b36e2625c7179db345492f8"
2059+
integrity sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==
2060+
20562061
core-util-is@1.0.2, core-util-is@~1.0.0:
20572062
version "1.0.2"
20582063
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"

0 commit comments

Comments
 (0)