Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(highlight-vdom): remove UMD entry points and add CommonJS #7

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Jul 13, 2022

When we agreed not to expose an UMD build for highlight-vdom I forgot to remove the entry points for it. We don't need the package to be importable from CDNs.

Also replaced the main field with the ESM build. Right now, this is causing tools like ESLint and Jest not to find the package.

Edit: I now compile the package into CommonJS and use it for main for testing purposes—Jest doesn't natively works with ESM and setting it up requires Node 14, which we don't use in projects like InstantSearch.js.

@sarahdayan sarahdayan requested a review from Haroenv July 13, 2022 19:40
@sarahdayan sarahdayan changed the title fix(highlight-vdom): remove UMD entry points fix(highlight-vdom): remove UMD entry points and add CJS Jul 13, 2022
@sarahdayan sarahdayan changed the title fix(highlight-vdom): remove UMD entry points and add CJS fix(highlight-vdom): remove UMD entry points and add CommonJS Jul 13, 2022
@sarahdayan sarahdayan merged commit 7941870 into master Jul 18, 2022
@sarahdayan sarahdayan deleted the fix/highlight-vdom-umd branch July 18, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants