UNPKG

@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

25 lines (22 loc) 870 B
'use strict'; /** * Modules that must resolve to a single runtime instance in the admin bundle. * * CodeMirror extensions rely on `instanceof` checks internally, so the JSON custom * field (JSONInput) crashes if @codemirror/state (or its siblings) is duplicated * between @strapi/design-system, @codemirror/lang-json and @uiw/react-codemirror * They are resolved from @strapi/design-system's closure — the real * consumer that also externalizes them — and forced onto a single copy. * * @internal */ const ADMIN_VITE_SINGLETON_MODULES = [ '@codemirror/state', '@codemirror/view', '@codemirror/language', '@codemirror/lang-json', '@codemirror/commands', '@codemirror/lint', '@uiw/react-codemirror' ]; exports.ADMIN_VITE_SINGLETON_MODULES = ADMIN_VITE_SINGLETON_MODULES; //# sourceMappingURL=admin-vite-singleton-modules.js.map