sheetjs/demos/rollup
SheetJS 635310b639 version bump 0.11.3: "array" type
- phased out Array map invocations (fixes #620 h/t @dullin)
- "array" type supports Uint8Array
- Headless browser examples
- blank cells are omitted or stubbed (fixes #779 h/t @domxa)
- removed transferrables from demo
2017-08-19 19:06:34 -04:00
..
.gitignore
app.js version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
main.js
Makefile
README.md
rollup.config.js
rollup.config.node.js
rollup.html version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
xlsxworker.js version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00

Rollup

This library presents itself as a CommonJS library, so some configuration is required. The examples at https://rollupjs.org can be followed pretty much in verbatim. This sample demonstrates a rollup for browser as well as for node.

Required Plugins

The rollup-plugin-node-resolve and rollup-plugin-commonjs plugins are used:

import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
export default {
	/* ... */
	plugins: [
		resolve({
			module: false, // <-- this library is not an ES6 module
			browser: true, // <-- suppress node-specific features
		}),
		commonjs()
	],
	/* ... */
};