b0e278afb5
Introduces MPEG-TS streaming support by adding mpegts.js as an optional dependency, updating keywords, and implementing new utility modules for MPEG-TS loading and setup. Updates VideoElement and videoProtocol logic to handle MPEG-TS streams, adds corresponding tests and mocks, and improves local settings for npm install.
31 lines
777 B
TypeScript
31 lines
777 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
css: true,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'src/test/',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/dist/',
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'flv.js': new URL('./src/test/mocks/flv.mock.ts', import.meta.url).pathname,
|
|
'hls.js': new URL('./src/test/mocks/hls.mock.ts', import.meta.url).pathname,
|
|
'mpegts.js': new URL('./src/test/mocks/mpegts.mock.ts', import.meta.url).pathname,
|
|
},
|
|
},
|
|
});
|