Skip to content

Compatibility with serverless-webpack #3

@j0k3r

Description

@j0k3r

All my Lambda are written in ES6 and I use serverless-webpack to build them and be able to run them on AWS Lambda.

Your plugin doesn't seems to be compatible with it.
When the step function start I got an error which means the js isn't compiled before being executed:

Serverless: Building StepWorkFlow
OOPS /home/projectsrc/schedule-content/index.js:1
(function (exports, require, module, __filename, __dirname) { import { ScheduleContent } from './scheduleContent'
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:74:10)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions