Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cpexcel.js in webpack #438

Closed
rusty1s opened this issue Jul 14, 2016 · 1 comment
Closed

Remove cpexcel.js in webpack #438

rusty1s opened this issue Jul 14, 2016 · 1 comment

Comments

@rusty1s
Copy link

rusty1s commented Jul 14, 2016

When I build my project with this module via webpack and the following configuration:

node: {
    fs: 'empty',
  },
  externals: [
    { './jszip': 'jszip' },
    { './cptable': 'var cptable' },
  ],

it gets really large. I noticed that rows like

D[152] = "�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋

are also included in my bundle file. How can i remove cpexcel.js, so that it gets no longer included?

Thanks.

@SheetJSDev
Copy link
Contributor

@rusty1s those are coming from the codepage library, which is needed for XLS files and some other corner cases. If you don't expect to have to deal with XLS files (say, if you know the source is always producing XLSX or XLSB files), then you can safely suppress it by using webpack resolve:

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

This will be added to the README

saarCiklum pushed a commit to Folcon/js-xlsx that referenced this issue Aug 18, 2020
- decode sheet name for XLSX and XLML (fixes SheetJS#203 h/t @rocketmonkeys)
- XFExt (fixes SheetJS#298 h/t @aetna-softwares @aimcom @baharudinafif)
- handle truly empty `<is>` elements (fixes SheetJS#506 h/t @asksahil)
- pin version numbers for dependencies (fixes SheetJS#469 h/t @nhtera)
- sed usage fix (see SheetJS#572 h/t @Liryna)
- fix hex2RGB substr indices (fixes SheetJS#294 h/t @kamorahul)
- removed stale typescript files (see SheetJS#442)
- reworked shift formula regex (fixed SheetJS#551 h/t @SheetJSDev)
- README note on webpack codepage suppression (fixes SheetJS#438 h/t @rusty1s)
- README note on WTF (fixes SheetJS#487 h/t @livesoftware)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants