vue3-chat-scroll-next
Version:
Automatic, yet conditional, scroll-to-bottom directive for Vue.js 3.0
19 lines (17 loc) • 409 B
JavaScript
// rollup.config.js
import resolve from '@rollup/plugin-node-resolve';
import babel from 'rollup-plugin-babel';
export default {
input: './src/vue-chat-scroll.js',
output: {
file: './dist/vue-chat-scroll.js',
format: 'umd',
name: 'vue-chat-scroll'
},
plugins: [
resolve(),
babel({
exclude: 'node_modules/**' // only transpile our source code
})
]
};