admin-extension-sdk
admin-extension-sdk copied to clipboard
NTR - Add package.json import paths for admin
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.
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