From 98d90af890ca9b757ee7ab494dea7c1a7a9ee07e Mon Sep 17 00:00:00 2001 From: Marek Piasecki Date: Sun, 22 Jan 2023 18:07:07 +0100 Subject: [PATCH] the only configuration of import / export that works - for helpers --- site/src/router.imba | 2 +- src/helpers.imba | 10 +--------- src/router.imba | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) 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"