UNPKG

@ably/chat

Version:

Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, cust

39 lines (37 loc) 924 B
// vite.config.js import { resolve } from 'path'; import { defineConfig } from 'vite'; import dts from 'vite-plugin-dts'; export default defineConfig({ root: resolve(__dirname, '.'), plugins: [ dts({ // tsconfigPath: resolve(__dirname, '../../tsconfig.json'), entryRoot: resolve(__dirname, '.'), // rollupTypes: true, insertTypesEntry: true, exclude: ['src/core/**/*'], include: ['**/*.ts', '**/*.tsx'], }), ], build: { outDir: '../../dist/react', lib: { entry: resolve(__dirname, 'index.ts'), name: 'AblyChat', fileName: 'ably-chat-react', formats: ['es', 'umd'], }, rollupOptions: { external: ['ably', 'react', 'react-dom', 'react/jsx-runtime'], output: { globals: { react: 'React', 'react-dom': 'ReactDOM', ably: 'Ably', }, }, }, sourcemap: true, }, });