MQTT support (#1224)

* Add mqtt() method and documentation
* Documentation clarifications for MIDI and OSC
This commit is contained in:
Alex McLean 2024-11-30 09:07:55 +00:00 committed by GitHub
parent ef53367ba9
commit c66f19108c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 230 additions and 14 deletions

View file

@ -0,0 +1,19 @@
import { defineConfig } from 'vite';
import { dependencies } from './package.json';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [],
build: {
lib: {
entry: resolve(__dirname, 'mqtt.mjs'),
formats: ['es'],
fileName: (ext) => ({ es: 'index.mjs' })[ext],
},
rollupOptions: {
external: [...Object.keys(dependencies)],
},
target: 'esnext',
},
});