{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { Collection } from '@signaldb/core';\nconst devtoolsInProductionWarning = `\n\n\n!! WARNING !!\nYou are running @signaldb/devtools in production mode.\nThis can have a negative impact on performance and may expose sensitive information.\nPlease don't import @signaldb/devtools in production code and move it to development dependencies.\n\n\n`;\n/**\n * Loads the devtools in production mode and logs a warning if in production.\n */\nfunction loadDeveloperTools() {\n    const isProduction = process.env.NODE_ENV === 'production';\n    void import('./setup').then(() => {\n        Collection.enableDebugMode();\n        // eslint-disable-next-line no-console\n        if (isProduction)\n            console.warn(devtoolsInProductionWarning);\n    });\n}\nloadDeveloperTools();\n"],"names":["devtoolsInProductionWarning","loadDeveloperTools","isProduction","Collection"],"mappings":";AACA,MAAMA,IAA8B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAapC,SAASC,IAAqB;AACpB,QAAAC,IAAe,QAAQ,IAAI,aAAa;AAC9C,EAAK,OAAO,sBAAS,EAAE,KAAK,MAAM;AAC9B,IAAAC,EAAW,gBAAgB,GAEvBD,KACA,QAAQ,KAAKF,CAA2B;AAAA,EAAA,CAC/C;AACL;AACAC,EAAmB;"}