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
Running serverless webpack produces my webpack'd .js file as well as a node_modules directory that contains EVERY sub-directory in my node-modules directory.
Why does /tmp/.webpack/node_modules not just contain request andrxjs(as you can see I'm usingnodeExternals()`?
The smaller the code (and zip size) the quicker the lambda starts (and lowers the overall response time). How do I make it so only the files/code I use within require()d external modules, get pulled into a single webpack'd .js file? Browserify does this very nicely, can't figure out how to pull this off in webpack
The text was updated successfully, but these errors were encountered:
I think that #48 should resolve this issue. it will be included in v1 when it's released. if you could try it beforehand and confirm that this issue is fixed it would be even better!
Running
serverless webpack
produces my webpack'd.js
file as well as anode_modules
directory that contains EVERY sub-directory in mynode-modules
directory.Project layout
pages/handler.js
package.json
webpack.config.js
Running
serverless webpack
produces (at/tmp/.webpack
):/tmp/.webpack/node_modules
not just containrequest and
rxjs(as you can see I'm using
nodeExternals()`?require()
d external modules, get pulled into a single webpack'd.js
file? Browserify does this very nicely, can't figure out how to pull this off in webpackThe text was updated successfully, but these errors were encountered: