validate-curp
Version:
A simple library to validate Mexican CURPs (Personal ID)
24 lines (22 loc) • 475 B
JavaScript
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import { terser } from 'rollup-plugin-terser';
export default {
input: 'src/index.js',
output: {
file: 'dist/index.js',
format: 'umd',
name: 'validateCurp',
sourcemap: true,
},
plugins: [
commonjs(),
json(),
babel({
babelHelpers: 'bundled',
presets: ['@babel/env'],
}),
terser(),
],
};