Skip to content

webpack and es6 #4

Description

@fusionbeam

Does this plugin work with webpack and es6 with babel?

Looking at the stack trace errors I get that is trying to load modules with the cjs loader instead of the babel-loader.

SyntaxError: Unexpected token {
     at Module._compile (internal/modules/cjs/loader.js:749:23)
     at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
     at Module.load (internal/modules/cjs/loader.js:672:32)
     at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
     at Function.Module._load (internal/modules/cjs/loader.js:604:3)
     at Module.require (internal/modules/cjs/loader.js:711:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.createHandler (/usr/src/popmetrics-nodesls/node_modules/serverless-offline/src/functionHelper.js:192:17)
    at Object.keys.reduce (/usr/src/popmetrics-nodesls/node_modules/serverless-offline-lambda/src/index.js:33:38)
    at Array.reduce (<anonymous>)
    at LambdaOffline.buidServer (/usr/src/popmetrics-nodesls/node_modules/serverless-offline-lambda/src/index.js:30:58)
    at LambdaOffline.start (/usr/src/popmetrics-nodesls/node_modules/serverless-offline-lambda/src/index.js:17:10)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions