serverless-babel-plugin
serverless-babel-plugin copied to clipboard
A Serverless plugin to compile your JavaScript code with Babel before deployment
I have a Lambda function which the handler is in a subdirectory, e.g.: ``` functions: myFunction: handler: myFunction/handler.myFunction ``` When I deploy with the plugin enabled, the handler is not...
I have forked this, updated deprecated dependencies and improved functionality. For future googlers, here you go: https://github.com/headnote/serverless-babel-plugin I am happy to maintain this fork going forward or submit a PR...
https://www.npmjs.com/package/serverless-babel-plugin
Bug fix for issue #17 The custom section in serverless.yaml now can be defined without babelPlugins as per the documentation.
Use babel-preset-env instead babel-preset-latest #20
Currently, babel-preset-latest is deprecated. Babel suggest use babel-preset-env instead babel-preset-latest
This line (line 70) is causing error on Windows machine since execPath is defined as constant `if (isWin) execPath += '.cmd';` Also at line 63 with no babelPlugins settings defined...
What's tested: ``` sls deploy sls deploy function -f ``` with params in serverless.yml: ``` package: individual: true # false ```
I'm not sure of the pattern yet, but I have notice that as I continue to deploy a simple service with this plugin that my reported function size grows. This...