-
Notifications
You must be signed in to change notification settings - Fork 417
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
Webpack 4 support (@NPM: ^5.0.0-rc.4) #331
Comments
Hi @julianosam . Webpack 4 is not yet supported. It will be done with serverless-webpack version 5.0.0, which is already on the horizon. The new version will drop support of webpack 2 in favor of webpack 4. There is already a fix in PR #328. Could you do me a favor and try to use |
Changed the subject back to the first version. We'll keep this issue as master issue for Webpack 4 support and serverless-webpack version 5.0.0! |
Pardon the ignorant question, but if webpack 4 isn't supported.. why does this plugin install it then? Would it not make sense to pin the dependency at webpack 2.x (or webpack 3.x)? |
Exactly 😄 . Together with the upcoming 4.4.0 release I will restrict the webpack peer dependency to |
Additionally I will release a |
Ahh ok. 😄 Thanks! |
@HyperBrain Tested here with the latest code. So far so good. Dependencies are being included correctly. Looking forward to the release! Let us know if you need any help! |
At all here, @janicduplessis and @serverless-heaven/serverless-webpack-contributors : I did a pre release based on 4.4.0 and published a new |
I upgraded one of our projects to Webpack 4. So far everything works properly. The only additional work was to upgrade/update the loaders and webpack plugins properly (especially the babel-loader to |
|
Released with 5.0.0 |
Hi. I'm trying out the plugin using webpack 4.0.1 and I noticed a strange behavior using
webpackIncludeModules
options in conjunction with[nodeExternals()]
in webpack config. For some reason, the build completes successfully but it does not include any external modules being imported in the code. It used to work just fine with webpack 3 and any module declared as a dependency were included under the node_module folder inside the package zip file.So my question is: is webpack 4 supported? If it is, is there any additional configuration? Let me know if you need more information on this issue:
serverless-webapck version: 4.3.0
webpack version: 4.0.1
serverless.yml
webpack.config.js
package.json (dependencies)
The text was updated successfully, but these errors were encountered: