vanilla-js-wheel-zoom
Version:
Image resizing using mouse wheel (pinch to zoom) + drag scrollable image (as well as any HTML content)
23 lines (21 loc) • 432 B
JavaScript
const babel = require('@rollup/plugin-babel');
module.exports = {
input: 'src/wheel-zoom.js',
output: {
file: 'dist/wheel-zoom.js',
format: 'umd',
name: 'WZoom'
},
plugins: [
babel({
babelHelpers: 'bundled',
})
],
watch: {
exclude: 'node_modules/**',
clearScreen: false,
chokidar: {
usePolling: true
}
}
};