Closed artuska closed 2 weeks ago
Welcome @artuska! 👋 I'm open to adding the package to the exports. Could you expand a bit on what you want out of that file? And why or how you want to leverage it?
This feature is related to the Vite issue — https://github.com/originjs/vite-plugin-federation/issues/357
@artuska it looks like a bug in an abandoned module https://github.com/originjs/vite-plugin-federation/issues/597 And that it is no longer recommended https://github.com/originjs/vite-plugin-federation/issues/597#issuecomment-2395491268
Try migrating to https://github.com/module-federation/vite
I'd hold on making changes here because:
Paraphrasing the argument here, some unmaintained, uncommon, tool is broken and an error can disappear when we add package.json
to exports. There are viable alternatives: migrating to a maintained alternative or patch-package. I don’t think that’s a good story for changing things here.
For me, it is intentional that package.json
s are not part of the public API. We can have a discussion about adding them to all packages. We could test a small subset of course and it doesn’t have to be all at once. But still: I’m not convinced yet and that would be a whole discussion about trade offs, so more something for https://github.com/unifiedjs/rfcs or so.
That discussion would have little to do with the arguments here. So, closing this issue for now.
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Initial checklist
Problem
Missing "./package.json" in package.json "exports":
Solution
Just add "./package.json" in package.json "exports" like that:
Alternatives
Just add "./package.json" in package.json "exports".