serverless-bundle
serverless-bundle copied to clipboard
Add minify options
Typeorm library cannot function well with minified class names and reports weird errors: https://github.com/typeorm/typeorm/issues/2104
All solutions point to turning the minification off (optimally for specified files only). Would that be possible?
The simple solution would be to modify webpack.config.js
like this:
new ESBuildMinifyPlugin({
keepNames: true, // Add this, possibly driven by some config option
target: esbuildNodeVersion,
}),
PR: #296
Same with systems using decorators like mongoose/typegoose . I would love to see your PR merged soon :) @ Btw is this really usefull / necessary to minify build ?
I'm using mongoose/typegoose so I'd love to have this feature :)