mapwhizz
Version:
A reusable and customizable SVG map component for visualizing country-based data.
23 lines (21 loc) • 597 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { babel } from '@rollup/plugin-babel';
export default {
input: 'src/index.js', // Entry point of your library
output: [
{
file: 'dist/main.cjs', // CommonJS build
format: 'cjs',
},
{
file: 'dist/module.js', // ES module build
format: 'es',
},
],
plugins: [
resolve(), // Resolves node_modules
commonjs(), // Converts CommonJS to ES modules
babel({ babelHelpers: 'bundled' }), // Transpiles modern JS
],
};