Is there some way to autogenerate that? Or some guide to follow for what to put in there? I didin't see anything clear in the docs.
oh, neat
ah, found it:
https://payloadcms.com/docs/admin/components#import-mapThanks!
A point of clarification - I didn't have that script in my package.json (probably because I've been using the beta for a few months). Easy enough to add it based on the similar
generate:types
which IS in there.
"scripts": {
"generate:importmap": "payload generate:importmap",
All you need to run is this command:
pnpm generate:importmap
Star
Discord
online
Get dedicated engineering support directly from the Payload team.