From 06f969e902e60b8fdbd499eb47dff27c0ae7c878 Mon Sep 17 00:00:00 2001 From: "F. Levi" <55688616+flevi29@users.noreply.github.com> Date: Wed, 23 Oct 2024 01:21:50 +0300 Subject: [PATCH 1/2] Fix rollup importing wrong 'meilisearch' --- packages/autocomplete-client/rollup.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/autocomplete-client/rollup.config.js b/packages/autocomplete-client/rollup.config.js index cdbd8447..55b2bd5d 100644 --- a/packages/autocomplete-client/rollup.config.js +++ b/packages/autocomplete-client/rollup.config.js @@ -51,11 +51,7 @@ const ROLLUP_OPTIONS = [ }, plugins: [ ...COMMON_PLUGINS, - nodeResolve({ - mainFields: ['jsnext', 'browser', 'main'], - preferBuiltins: true, - browser: true, - }), + nodeResolve({ exportConditions: ['browser'] }), commonjs(), babel(), env === 'production' ? terser() : {}, // will minify the file in production mode From 7bc6b54044a5c7b0b8b9c60fd71ae674426853a3 Mon Sep 17 00:00:00 2001 From: "F. Levi" <55688616+flevi29@users.noreply.github.com> Date: Wed, 23 Oct 2024 01:23:55 +0300 Subject: [PATCH 2/2] Add changeset --- .changeset/calm-snakes-dream.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/calm-snakes-dream.md diff --git a/.changeset/calm-snakes-dream.md b/.changeset/calm-snakes-dream.md new file mode 100644 index 00000000..2a28b356 --- /dev/null +++ b/.changeset/calm-snakes-dream.md @@ -0,0 +1,5 @@ +--- +"@meilisearch/autocomplete-client": patch +--- + +Fix rollup importing wrong "meilisearch"