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

Webpack support? #2

Open
mbahoshy opened this issue Nov 11, 2016 · 1 comment
Open

Webpack support? #2

mbahoshy opened this issue Nov 11, 2016 · 1 comment

Comments

@mbahoshy
Copy link

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

@b4stien
Copy link
Owner

b4stien commented Nov 30, 2016

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.

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