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

Buffer Lib does not transpile code into ES2015 which does not allow to import it by older devices #323

Open
vvasylkovskyi opened this issue Mar 20, 2023 · 1 comment

Comments

@vvasylkovskyi
Copy link

On our project, we faced an issue of having a non-tranpiled const in node_modules. This is an issue for us as some of the devices we support end up not working due to a transpilation error.

As a fix on our side, we have to fork buffer lib locally and transpile it ourselves so that all const become var and other ES2015 syntax (we are also a lib used by the apps, so transpiling buffer code via webpack was not an option).

Is it possible to solve it on the buffer side and compile contents to ES2015 so we can import buffer again?

@vvasylkovskyi
Copy link
Author

I have a fix PR for that, adding build options and a tsconfig.json file, but I have to privileges to push to the repo. I would be happy to push it if possible

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

1 participant