sheetjs-clone/demos/webpack
SheetJS d02650055d version bump 0.11.4: BIFF8 XLS write
- xlsx bin script takes `-8, --xls` options for writing BIFF8
- updated CFB to 0.12.1, CRC32 to 1.1.1
- test file spelling error (h/t @jsoref)
- minified script renames write_shift / read_shift
- UTF8 and XML entity processing

Issues:
- fixes #815 h/t @Neroth
- fixes #739 h/t @LittleBreak @PWDream
- fixes #553 h/t @keyiis
- fixes #492 h/t @FlyingSailor @simonchan2013
2017-09-22 18:18:51 -04:00
..
.gitignore version bump 0.11.1: dist cleanup 2017-08-05 02:32:57 -04:00
app.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
core.html version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
core.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
coreworker.js version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
full.html version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
full.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
fullworker.js version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
main.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
Makefile version bump 0.11.1: dist cleanup 2017-08-05 02:32:57 -04:00
README.md version bump 0.11.4: BIFF8 XLS write 2017-09-22 18:18:51 -04:00
webpack.config.js Math.LOG2E precision issue + new demos [ci skip] 2017-09-05 01:34:30 -04:00
webpack.html version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00
xlsx.core.min.js version bump 0.11.1: dist cleanup 2017-08-05 02:32:57 -04:00
xlsx.full.min.js version bump 0.11.1: dist cleanup 2017-08-05 02:32:57 -04:00
xlsxworker.js version bump 0.11.3: "array" type 2017-08-19 19:06:34 -04:00

Webpack

This library is built with some dynamic logic to determine if it is invoked in a script tag or in nodejs. Webpack does not understand those feature tests, so by default it will do some strange things.

Suppressing the Node shims

The library properly guards against accidental leakage of node features in the browser but webpack disregards those. The config should explicitly suppress:

	node: {
		fs: false,
		process: false,
		Buffer: false
	}

Exporting the XLSX variable

This library will not assign to module.exports if it is run in the browser. To convince webpack, set output in the webpack config:

	output: {
		libraryTarget: 'var',
		library: 'XLSX'
	}

Omitting optional dependencies

The codepage is needed in certain special cases, including files generated by non-US-English versions of Excel, but may not be needed. To reduce build size, the module can be omitted by aliasing the dependency:

	resolve: {
		alias: { "./dist/cpexcel.js": "" }
	},

Bower and minified versions

Webpack may show a message like "This seems to be a pre-built javascript file" when processing minified files (like the default Bower script). The message is harmless. To suppress the message, set module.noParse in the webpack config:

	module: {
		noParse: [
			/xlsx.core.min.js/,
			/xlsx.full.min.js/
		]
	}