admin-extension-sdk icon indicating copy to clipboard operation
admin-extension-sdk copied to clipboard

NTR - Add package.json import paths for admin

Open NiklasLimberg opened this issue 1 year ago • 0 comments

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

NiklasLimberg avatar Jun 16 '23 12:06 NiklasLimberg