Skip to content

Remove non-existing file references from the package.json#132

Merged
felixgirault merged 1 commit intoboscop-fr:mainfrom
tinogo:patch-1
Jul 10, 2025
Merged

Remove non-existing file references from the package.json#132
felixgirault merged 1 commit intoboscop-fr:mainfrom
tinogo:patch-1

Conversation

@tinogo
Copy link
Copy Markdown
Contributor

@tinogo tinogo commented Jul 5, 2025

Suppose you want to bundle the dist assets of orejime using Webpack:

import "orejime/dist/orejime-standard.css";
import "orejime/dist/orejime-standard-de";

Webpack errors out with the following error message:
grafik

I.e. Webpack complains, that it can't find the files from above, as these aren't exported from the NPM-package.
While having a deeper look into the package.json I've figured out, that the main-, browser- and exports-properties mostly reference files, which aren't even part of the dist-package.

That's why I simply removed the properties, which makes the Webpack bundling succeed! :)

It would be really nice if you could consider my PR, as I would like to switch from Klaro to orejime, as it seems to be much better maintained.

This removes some entries from the package.json, as these are pointing to files which don't exist.

This in turn prevents the inclusion of orejime's dist-assets into bundlers, like webpack.
@felixgirault felixgirault self-assigned this Jul 10, 2025
@felixgirault felixgirault added the bug Something isn't working label Jul 10, 2025
@felixgirault
Copy link
Copy Markdown
Contributor

Hello,

Indeed, those props were set for a previous version and are not relevant anymore. Thank you!

PS: You might have seen it already, but we don't recommend bundling Orejime yourself (see this note https://github.com/boscop-fr/orejime/blob/main/adr/001-distribution-formats.md)

@felixgirault felixgirault merged commit 1aeaf5f into boscop-fr:main Jul 10, 2025
5 checks passed
@felixgirault felixgirault added this to the 3.0.2 milestone Jul 10, 2025
@tinogo tinogo deleted the patch-1 branch July 10, 2025 07:28
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.

2 participants