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

fix(esm): mark esm exports as type: module #1111

Merged
merged 8 commits into from
Feb 10, 2022
Merged

fix(esm): mark esm exports as type: module #1111

merged 8 commits into from
Feb 10, 2022

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Feb 9, 2022

fixes #1098

  • makes all imports from InstantSearch.js resolved
  • refactor build script and tests
  • make /cjs import from InstantSearch cjs

Notes for review: I refactored the build to not require to separate calls to rollup, this makes the diff a little harder to follow, as new plugins are also added. You can see the individual commits for each of the steps that happened

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 9, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b86eb7d:

Sandbox Source
vue-instantsearch-e-commerce Configuration
vue-instantsearch-app Issue #1098

@Haroenv Haroenv marked this pull request as ready for review February 9, 2022 14:43
Copy link
Member

@dhayab dhayab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good to me. I got a failed esm test with the node version defined in .nvmrc (12.16), maybe we could bump it to the version set in the CI (12.22) ?

@Haroenv
Copy link
Contributor Author

Haroenv commented Feb 10, 2022

That would be good, but seems like it breaks fsevents on macOS for me, so will do that in a separate PR @dhayab

@Haroenv Haroenv merged commit 71c25d4 into master Feb 10, 2022
@Haroenv Haroenv deleted the fix/esm branch February 10, 2022 13:06
Haroenv added a commit to algolia/instantsearch that referenced this pull request Dec 28, 2022
…#1111)

* chore: import consistently from util

* refactor(build): build both vue2 and vue3 with same rollup config

* use babel to resolve extension

* create package.json and cjs entry

* test in ci

* split up vue 2 and vue 3

* fix vue3 imports in test

* less strict test that doesn't depend on babel version
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Components does not work in a fresh Nuxt 3 project
2 participants