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

24 lines (22 loc) 625 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({ insertTypesEntry: true })], build: { outDir: '../dist/chat', lib: { entry: resolve(__dirname, 'index.ts'), name: 'AblyChat', fileName: 'ably-chat', }, rollupOptions: { // We currently suggest that ably be installed as a separate dependency, so lets // not bundle it. external: ['ably', 'react', 'react-dom', 'react/jsx-runtime'], }, sourcemap: true, }, });