Skip to content

Commit 034f190

Browse files
committed
Fix wrong meilisearch client being imported in UMD
1 parent 5870e0b commit 034f190

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/instant-meilisearch/rollup.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const ROLLUP_OPTIONS = [
3838
// browser-friendly IIFE build
3939
{
4040
input: INPUT, // directory to transpilation of typescript
41-
external: ['cross-fetch', 'cross-fetch/polyfill'],
4241
output: {
4342
name: 'window',
4443
extend: true,
@@ -55,11 +54,7 @@ const ROLLUP_OPTIONS = [
5554
},
5655
plugins: [
5756
...COMMON_PLUGINS,
58-
nodeResolve({
59-
mainFields: ['jsnext', 'browser', 'main'],
60-
preferBuiltins: true,
61-
browser: true,
62-
}),
57+
nodeResolve({ exportConditions: ['browser'] }),
6358
commonjs(),
6459
babel(),
6560
// json(),

0 commit comments

Comments
 (0)