AnomalyInnovations / serverless-stack-demo-api

Source for the demo app API in the Serverless Stack Guide
https://demo.serverless-stack.com
MIT License
517 stars 197 forks source link

Upgrade to Webpack 4 #12

Closed HyperBrain closed 6 years ago

HyperBrain commented 6 years ago

Relates to https://github.com/AnomalyInnovations/serverless-stack-com/issues/112

jayair commented 6 years ago

@HyperBrain This is awesome. Thanks for the additional improvements. I'll update the tutorial and merge this soon.

HyperBrain commented 6 years ago

There's one thing you also should add to the tutorial: Webpack 4 dropped support for Node 4 (see WP 4.0.0 Release Notes) for running webpack itself.

Node.js 4 is no longer supported. Source Code was upgraded to a higher ecmascript version.

That means that your build system needs to use Node 6 or greater. However that does not imply any changes on the target of the compiled code, only the build system. Having a small note could prevent some hassle 😄

jayair commented 6 years ago

Yeah good point.