-
Notifications
You must be signed in to change notification settings - Fork 27
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
Unwebpack'd node-modules #169
Comments
With shep 3x this can be accomplished with a custom |
@reconbot I am gonna reopen. This is def possible via a few methods, but I think we should document better. |
@Steve for documentation purposes, our current work around for shep 3.2.x is the following externals: {
'phantom': 'phantom', // module we want in the lambda function
'aws-sdk': 'aws-sdk',
'hiredis': 'hiredis'
}, package.json shep field "shep": {
"region": "us-east-1",
"accountId": "123",
"apiId": "abc123",
"buildCommand": "webpack --bail && PHANTOMJS_PLATFORM=\"linux\" PHANTOMJS_ARCH=\"x64\" npm i [email protected] @bustle/flower --prefix ./dist/function-name"
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tsiege and I are tyring to get webpack to play nice with a module (
sgvo
) that usesfs.readFileSync
and other bad module practices. This doesn't play well with webpack. The best way to include this modules to just mark it anexternal
and just upload it with the index.js.How can we do that? I'd like to mark a function in such a way that shep zips
node-modules
with the function.The text was updated successfully, but these errors were encountered: