Skip to content

When using esbuild and sourcemaps, any resulting error messages do not utilize the sourcemap. #370

Description

@doulighan
serverless-bundle: 6.1.0
node: 16, 17, 18

bundle:
    linting: false
    esbuild: true
    caching: true
    sourcemaps: true

The sourcemap files are generated under .webpack, but error messages still reference the transpiled code directly. This happens both deployed on AWS, and for serverless invoke local

Switching to esbuild: false fixes the sourcemaps in both situations, but its certainly slower.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions