Open TaichiHo opened 7 years ago
@TaichiHo Hi, thanks for using npdynamodb and really awesome thing to use it in production!
I see, I'll investigate it. give me a second. (Actually it's mainly designed for server side so its browser support is little bit lazy haha..)
@noppoMan Thanks for the reply.
I am actually using it on server side as well. I want to use webpack to bundle it and deploy to aws lambda.
For the migrator.js
, it might be necessary to use the dynamic require. But for the api.js
, it seems normal static require should be enough.
According to webpack, dynamic require is considered an anti-pattern.
Should be a easy fix.
Thanks you!
I'm sorry. @TaichiHo Why do you need webpack in order to deploy it on AWS Lambda?
Hi, I love this library a lot and want to use it in my production environment.
Right now I have this library as dependency and I am trying to packaging my application with webpack. Webpack complains about the dynamic require issues.
The default behavior of webpack is create a context object pointing to the current directory which in this case will not resolve the dependency.
Any ideas on improving this?
Thanks.