gocardless-nodejs
gocardless-nodejs copied to clipboard
gocardless-nodejs module breaks source maps
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',
},
],
},```