UNPKG

read-excel-file

Version:

Read small to medium `*.xlsx` files in a browser or Node.js. Parse to JSON with a strict schema.

34 lines (33 loc) 805 B
import json from 'rollup-plugin-json' import nodeResolve from 'rollup-plugin-node-resolve' import commonjs from 'rollup-plugin-commonjs' import { terser } from 'rollup-plugin-terser' export default [ { // `index.js` didn't work because it "mixes named and default exports". // input: './index', input: './modules/read/readXlsxFileBrowser', plugins: [ json(), terser(), nodeResolve({ browser: true }), commonjs() ], external: [ // 'react', // 'prop-types' ], output: { format: 'umd', name: 'readXlsxFile', file: 'bundle/read-excel-file.min.js', sourcemap: true, globals: { // 'react': 'React', // 'prop-types': 'PropTypes' } } } ]