Skip to content

Commit 51eed41

Browse files
committed
MOAR polyfills
1 parent 630832e commit 51eed41

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
{
1212
"expose": "plugins",
1313
"src": "src/plugins"
14+
},
15+
{
16+
"expose": "src",
17+
"src": "src"
1418
}
1519
]
1620
]

src/plugins/editor-autosuggest-keywords/keyword-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var Bool = ["true", "false"]
33
var Anything = String
44

5-
var combine = (...objs) => Object.assign({}, ...objs)
5+
var combine = (...objs) => objs ? Object.assign({}, ...objs) : {}
66

77
var makeValue = (val = "") => {
88
return {

src/plugins/validation/validation.worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import "src/polyfills.js"
2+
13
import concat from "lodash/concat"
24
import { validate } from "./structural-validation/validator"
35
import { runSemanticValidators } from "./semantic-validators/hook"

src/polyfills.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
require("core-js/fn/object/values")
2+
require("core-js/fn/object/assign")
3+
require("core-js/fn/object/assign")
4+
require("core-js/es6/string")
5+
require("core-js/es6/array")

0 commit comments

Comments
 (0)