@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
1 lines • 1.19 kB
Source Map (JSON)
{"version":3,"file":"admin-vite-singleton-modules.mjs","sources":["../../../../src/node/core/admin-vite-singleton-modules.ts"],"sourcesContent":["/**\n * Modules that must resolve to a single runtime instance in the admin bundle.\n *\n * CodeMirror extensions rely on `instanceof` checks internally, so the JSON custom\n * field (JSONInput) crashes if @codemirror/state (or its siblings) is duplicated\n * between @strapi/design-system, @codemirror/lang-json and @uiw/react-codemirror\n * They are resolved from @strapi/design-system's closure — the real\n * consumer that also externalizes them — and forced onto a single copy.\n *\n * @internal\n */\nexport const ADMIN_VITE_SINGLETON_MODULES = [\n '@codemirror/state',\n '@codemirror/view',\n '@codemirror/language',\n '@codemirror/lang-json',\n '@codemirror/commands',\n '@codemirror/lint',\n '@uiw/react-codemirror',\n] as const;\n\nexport type AdminViteSingletonModule = (typeof ADMIN_VITE_SINGLETON_MODULES)[number];\n"],"names":["ADMIN_VITE_SINGLETON_MODULES"],"mappings":"AAAA;;;;;;;;;;UAWaA,4BAAAA,GAA+B;AAC1C,IAAA,mBAAA;AACA,IAAA,kBAAA;AACA,IAAA,sBAAA;AACA,IAAA,uBAAA;AACA,IAAA,sBAAA;AACA,IAAA,kBAAA;AACA,IAAA;;;;;"}