Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

NTR - Add package.json import paths for admin#83

Open
NiklasLimberg wants to merge 1 commit intomainfrom
ntr/add-import-paths
Open

NTR - Add package.json import paths for admin#83
NiklasLimberg wants to merge 1 commit intomainfrom
ntr/add-import-paths

Conversation

@NiklasLimberg
Copy link
Contributor

This PR fixes building the administration with vite. Vite complains about every import that doesn't have a corresponding export in the exports field, if such a configuration exists.

Vite error because export is not defined

This solution is certainly not perfect, but it makes vite happy. Ideally we would consolidate our imports in the admin as the node docs recommend, or we should put targeted sub exports in our package.json and those then would be exclusively used.

How to test:

Try to start the watch mode of my vite PoC or search for all imports in the administration and try to find a corresponding entry in the package.json config

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.

1 participant