xsheetjs/demos/rollup/rollup.config.worker.js

19 lines
363 B
JavaScript

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
export default {
input: 'xlsxworker.js',
output: {
file: 'worker.js',
format: 'iife'
},
//dest: 'worker.js',
plugins: [
resolve({
module: false,
browser: true,
}),
commonjs()
],
};