From bd40c899e6ff5af1ec5332ad0f1662b1998a516e Mon Sep 17 00:00:00 2001 From: arggh Date: Fri, 15 Mar 2019 20:51:09 +0200 Subject: [PATCH] Enable lazy loading Using this package forces also `jagi:astronomy` to be bundled on the initial static client bundle. Adding `{ lazy: true }` should exclude this package (and therefore `jagi:astronomy`) from the static bundle, unless specifically imported. --- package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.js b/package.js index 54f373a..9503cf3 100644 --- a/package.js +++ b/package.js @@ -14,5 +14,5 @@ Package.onUse(function(api) { 'jagi:astronomy@2.0.0' ], ['client', 'server']); - api.mainModule('lib/main.js', ['client', 'server']); -}); \ No newline at end of file + api.mainModule('lib/main.js', ['client', 'server'], { lazy: true }); +});