There was an error while loading. Please reload this page.
1 parent 0ddee0c commit a3afe56Copy full SHA for a3afe56
1 file changed
‎packages/browser-rum-core/test/allJsonSchemas.ts‎
@@ -1,10 +1,9 @@
1
/// <reference types="vite/client" />
2
// Load all JSON schema files from @datadog/rum-events-format dependency.
3
// Uses Vite's import.meta.glob (replaces webpack's require.context).
4
-const schemaModules = import.meta.glob(
5
- '../../../node_modules/@datadog/rum-events-format/schemas/**/*.json',
6
- { eager: true }
7
-)
+const schemaModules = import.meta.glob('../../../node_modules/@datadog/rum-events-format/schemas/**/*.json', {
+ eager: true,
+})
8
9
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
10
export const allJsonSchemas = Object.values(schemaModules).map((mod: any) => mod.default || mod)
0 commit comments