* Chore: Add move most types from rrweb to @rrweb/types package * Split off type imports * Split off type import to its own line * Get vite to generate type definitions * Apply formatting changes * noEmit not allowed in tsconfig, moved it to build step * Align version of @rrweb/types with main rrweb package Based on @mark-fenng's comments https://github.com/rrweb-io/rrweb/pull/1031/files#r1002298176 * Move up keywords
22 lines
456 B
JavaScript
22 lines
456 B
JavaScript
import path from 'path';
|
|
import dts from 'vite-plugin-dts';
|
|
/**
|
|
* @type {import('vite').UserConfig}
|
|
*/
|
|
export default {
|
|
build: {
|
|
// See https://vitejs.dev/guide/build.html#library-mode
|
|
lib: {
|
|
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
name: 'rrwebTypes',
|
|
},
|
|
|
|
// Leaving this unminified so you can see what exactly gets included in
|
|
// the bundles
|
|
minify: false,
|
|
|
|
sourcemap: true,
|
|
},
|
|
plugins: [dts()],
|
|
};
|