Skip to content

Commit

Permalink
fix(instantsearch): keep algoliasearch-helper as external dependency …
Browse files Browse the repository at this point in the history
…during build (#5765)

Co-authored-by: Haroen Viaene <hello@haroen.me>
  • Loading branch information
dhayab and Haroenv authored Jul 19, 2023
1 parent eb0bb32 commit 550fefa
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/instantsearch.js/scripts/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const plugins = [
}),
babel({
rootMode: 'upward',
exclude: /node_modules/,
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
}),
commonjs(),
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = (name) =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-dom-maps/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = (name) =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-dom/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = (name) =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-hooks-web/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = (name) =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch-hooks/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = (name) =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-instantsearch/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createBanner = () =>

const plugins = [
babel({
exclude: ['../../node_modules/**', 'node_modules/**'],
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.ts', '.tsx'],
rootMode: 'upward',
runtimeHelpers: true,
Expand Down
1 change: 1 addition & 0 deletions packages/vue-instantsearch/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export * from './src/instantsearch.js';`
JSON.stringify({ type: 'module', sideEffects: true })
),
babel({
exclude: /node_modules|algoliasearch-helper/,
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue'],
babelrc: false,
plugins: [
Expand Down

0 comments on commit 550fefa

Please sign in to comment.