From c933c9969c7f8b2f14d58c5c46bbcf9801eb0285 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Mon, 18 Mar 2019 21:39:31 -0400 Subject: [PATCH] Fix invalid usage of `import/export` (#221) The combination of the way object-transforms.js is authored and the way it's consumed within this addon is not actually valid Javascript! Importing the default export from a module *does not* give you all the individual named imports in a handy container. The code only happens to work because Ember's loader is being lenient and doesn't really follow the ECMA module spec. But this code will break under any spec-compliant module loader, including embroider. --- addon/utils/object-transforms.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addon/utils/object-transforms.js b/addon/utils/object-transforms.js index a9157e42..24c3443b 100644 --- a/addon/utils/object-transforms.js +++ b/addon/utils/object-transforms.js @@ -45,3 +45,7 @@ export function isPresent(objectInstance) { return !!keys.length; } + +export default { + compact, without, only, isPresent +}