You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
On our project, we faced an issue of having a non-tranpiled
const
innode_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 allconst
becomevar
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 importbuffer
again?The text was updated successfully, but these errors were encountered: