Skip to content

Commit

Permalink
fix rollup error (peerDeps)
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Sep 4, 2020
1 parent fc51e8b commit d157def
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/autocomplete-plugin-recent-searches/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Rollup failed to build because it couldn't find @algolia/autocomplete-js,
// although it is in the peerDependencies.
// This seems to be a workaround.
// https://github.com/ezolenko/rollup-plugin-typescript2/issues/198
declare module '@algolia/autocomplete-js';
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export default {
name: pkg.name,
banner: getBundleBanner(pkg),
},
external: ['@algolia/autocomplete-js'],
plugins,
};

0 comments on commit d157def

Please sign in to comment.