xsheetjs/demos/rollup
SheetJS ad47cb433c Math.LOG2E precision issue + new demos [ci skip]
- swift + jsc
- java + rhino
- XMLHttpRequest and friends
2017-09-05 01:34:30 -04:00
..
.gitignore rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
app.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
main.js rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
Makefile rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
README.md rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
rollup.config.js rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
rollup.config.node.js rollup demo [ci skip] 2017-06-08 02:19:11 -04:00
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()
	],
	/* ... */
};