Skip to content

Running webpack for local testing #6

@goldytech

Description

@goldytech

Hi,
I have created a local js file with its dependency getting import in the handler.js as below

import JsonValidator from './src/jsonvalidator'

Now when i run this on local for testing purpose using mock event json. I'm getting error import undrfined error

This is because i assume the code is not getting transpiled in local and only when it gets deployed.

So how do i transpile my code for local debugging and testing ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions