Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

babel as engine #3

Open
jschoch opened this issue Apr 30, 2016 · 3 comments
Open

babel as engine #3

jschoch opened this issue Apr 30, 2016 · 3 comments

Comments

@jschoch
Copy link

jschoch commented Apr 30, 2016

is this intended to be used with the babel engine?

@arabold
Copy link
Owner

arabold commented May 8, 2016

The plugin will simply evaluate if your Lambda functions run without throwing any errors. Depending on your setup, the transformation of your code with Babelify and the optimizer plugin happens only during deployment, but not when running sls function test.

Having that said, generally this should work perfectly fine. It's just not testing the babelified but the original code.

@jschoch
Copy link
Author

jschoch commented May 10, 2016

it appears to skip the functions with the engine set as babel in s-function

@arabold
Copy link
Owner

arabold commented May 10, 2016

True. It checks explicitly for "nodejs" as part of the runtime name (index.js, line 154). Adding babel to the check should work though. You want to try?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants