Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(instantsearch): allow to treeshake es module
Browse files Browse the repository at this point in the history
Closes: #311
  • Loading branch information
rayrutjes committed Sep 23, 2017
1 parent 33e4c2b commit f419329
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/rollup.umd.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import replace from 'rollup-plugin-replace';
import json from 'rollup-plugin-json';

export default {
entry: 'src/instantsearch.js',
entry: 'src/instantsearch.umd.js',
moduleName: 'VueInstantSearch',
exports: 'named',
plugins: [
Expand Down
5 changes: 0 additions & 5 deletions src/instantsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ const InstantSearch = {
},
};

// Automatically register Algolia Search components if Vue is available globally
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(InstantSearch);
}

export default InstantSearch;

export {
Expand Down
8 changes: 8 additions & 0 deletions src/instantsearch.umd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import InstantSearch from './instantsearch';

// Automatically register Algolia Search components if Vue is available globally
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(InstantSearch);
}

export * from './instantsearch';

0 comments on commit f419329

Please sign in to comment.