diff --git a/site/src/router.imba b/site/src/router.imba index 5e6fb24..425f5fa 100644 --- a/site/src/router.imba +++ b/site/src/router.imba @@ -1,6 +1,6 @@ import "pro-router/standalone" # standalone operates on "/#/" hash style url; for regular "/" url use: "pro-router/router" import "pro-router-imba2" -import { helpers } from "pro-router-imba2/helpers" +import * as helpers from "pro-router-imba2/helpers" import views from "./views.json" diff --git a/src/helpers.imba b/src/helpers.imba index 34498bd..1a55159 100644 --- a/src/helpers.imba +++ b/src/helpers.imba @@ -6,12 +6,4 @@ import reject from 'lodash.reject' import toPairs from 'lodash.topairs' import flatten from 'lodash.flatten' -export const helpers = { - compact: compact - fromPairs: fromPairs - chunk: chunk - includes: includes - reject: reject - toPairs: toPairs - flatten: flatten -} \ No newline at end of file +export { compact, fromPairs, chunk, includes, reject, toPairs, flatten } \ No newline at end of file diff --git a/src/router.imba b/src/router.imba index 5e6fb24..425f5fa 100644 --- a/src/router.imba +++ b/src/router.imba @@ -1,6 +1,6 @@ import "pro-router/standalone" # standalone operates on "/#/" hash style url; for regular "/" url use: "pro-router/router" import "pro-router-imba2" -import { helpers } from "pro-router-imba2/helpers" +import * as helpers from "pro-router-imba2/helpers" import views from "./views.json"