digitalmaas / serverless-plugin-browserifier

Reduce the size and speed up your Node.js based lambda's using browserify.
Other
27 stars 3 forks source link

Optional chaining is not working with serverless-plugin-browserifier #36

Closed otaviolm closed 3 years ago

otaviolm commented 3 years ago

Hello there,

Now node 14 version is available to use on AWS lambda, I'm trying to use a feature from this version optional chaining, however I'm facing a error when I try to use serverless-plugin-browserifier, without this plugin it's possible to compile code.

This is the error: "OperationalError: Parsing file {path}: Unexpected token (32:27)"

Is the plugin compatible with node 14 version ?

nolde commented 3 years ago

Hello @otaviolm ,

Yeah, I'm using it along with node 14 without any issues. I use optional chaining, null coalescing and all bells and whistles I can find.