js-csv-encoding icon indicating copy to clipboard operation
js-csv-encoding copied to clipboard

Webpack support?

Open mbahoshy opened this issue 9 years ago • 1 comments

Do you have any recommendations for exporting the encoder and using as part of a webpack build?

mbahoshy avatar Nov 11 '16 00:11 mbahoshy

Hey, sorry I didn't anwser, I haven't got any notification...

I'm not confortable uploading a "real" module doing what is showcased here to npm, basically we are monkey-patching text-encoding (this project: https://github.com/inexorabletash/text-encoding) to bypass the native TextEncoder browser API.

To integrate this into a "modern webpack build" I would just have an ad-hoc module with a patched version of text-encoding that would export an encoder. The gist of the encoding mechanism is unlikely to change anytime soon, this kind of implicit fork shouldn't be too hard to maintain.

Hope it helps, keeping this issue open as I might put such an ad-hoc module here.

b4stien avatar Nov 30 '16 14:11 b4stien