ExtendScript / extendscriptr

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)
Do What The F*ck You Want To Public License
154 stars 15 forks source link

Add encoding to fs.readFileSync when loading polyfills #27

Closed andyinabox closed 7 years ago

andyinabox commented 7 years ago

This should resolve the issue I raised in #26.

It seems that without explicitly setting file encoding, fs.readFileSync was sending a buffer to prependify (instead of a string). Not sure what's different about my env, I'm on node v7.2.1 and npm v3.10.9.

ff6347 commented 7 years ago

Thank you. I'm still having problems running it with Basil though.