Skip to content

fix(esm): make ESM exports explicit in index.mjs and utilities.mjs#1229

Merged
remarkablemark merged 2 commits intomasterfrom
fix/esm
Dec 18, 2023
Merged

fix(esm): make ESM exports explicit in index.mjs and utilities.mjs#1229
remarkablemark merged 2 commits intomasterfrom
fix/esm

Conversation

@remarkablemark
Copy link
Copy Markdown
Owner

@remarkablemark remarkablemark commented Dec 18, 2023

What is the motivation for this pull request?

Fixes #1228

Caused by #1226

What is the current behavior?

Vite fails with the error:

Uncaught SyntaxError: The requested module '/@fs/Users/.../node_modules/.vite/app/deps/html-react-parser.js?v=719515aa' does not provide an export named 'Element' (at list.tsx:6:31)

* exports in ESM files

What is the new behavior?

Vite does not error

Named exports in ESM files

Checklist:

Don't throw a commitlint error for:

```
footer's lines must not be longer than 100 characters
```
Fixes #1228

Vite fails with the error:

```
Uncaught SyntaxError: The requested module '/@fs/Users/.../node_modules/.vite/app/deps/html-react-parser.js?v=719515aa' does not provide an export named 'Element' (at list.tsx:6:31)
```
@remarkablemark remarkablemark added the bug Something isn't working label Dec 18, 2023
@remarkablemark remarkablemark self-assigned this Dec 18, 2023
@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/html-react-parser.min.js 9.19 KB (0%) 184 ms (0%) 21 ms (+163.12% 🔺) 204 ms

@remarkablemark remarkablemark merged commit 6ac2d12 into master Dec 18, 2023
@remarkablemark remarkablemark deleted the fix/esm branch December 18, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue after 5.0.9 update

1 participant