gocardless-nodejs icon indicating copy to clipboard operation
gocardless-nodejs copied to clipboard

gocardless-nodejs module breaks source maps

Open aharin opened this issue 3 years ago • 0 comments

Package is distributed with //# sourceMappingURL = comments embedded. This confuses aws lambda that imports this package. See https://github.com/drd/strip-sourcemap-loader for more context. The workaround is to add this in webpack config:

        test: /\.js$/,
        include: /node_modules/,
        use: [
          {
            loader: 'strip-sourcemap-loader',
          },
        ],
      },```

aharin avatar Apr 15 '21 21:04 aharin