From 265ace33f5bbcd313113ac87b4750c7b05f15f26 Mon Sep 17 00:00:00 2001 From: Vincent Voyer Date: Thu, 16 Jun 2016 17:43:47 +0200 Subject: [PATCH] fix(meteorjs): lite build must point to the browser lite (#1097) fixes #1024 Actually I had previously fixed #1024 by pointing to the lite build (side effect). But since https://github.com/algolia/algoliasearch-client- js/issues/283 I had to make the client nodejs lite build point to the nodejs normal build. Then it would have tried to use the nodejs build in meteorjs on the frontend. Please meteorjs, fix this :) --- src/lib/InstantSearch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/InstantSearch.js b/src/lib/InstantSearch.js index d17172ba9a..08cfe3bc6c 100644 --- a/src/lib/InstantSearch.js +++ b/src/lib/InstantSearch.js @@ -1,4 +1,6 @@ -import algoliasearch from 'algoliasearch/lite'; +// we use the fullpath to the lite build to solve a meteor.js issue: +// https://github.com/algolia/instantsearch.js/issues/1024#issuecomment-221618284 +import algoliasearch from 'algoliasearch/src/browser/builds/algoliasearchLite.js'; import algoliasearchHelper from 'algoliasearch-helper'; import forEach from 'lodash/collection/forEach'; import merge from 'lodash/object/merge';