This repository was archived by the owner on Nov 13, 2021. It is now read-only.
Tags: vvo/aws-lambda-nodejs-webpack
Tags
fix(targets): ensure we only transpile what's necessary before this commit we were still reading from: - user babelrc - user TypeScript compilerOptions (while we need different ones) - browserlists before this commit we were trying to minize code down to ES5 which would code weird issues with modules like Knex: `Class constructor cannot be invoked without 'new'` Which resulted in heavily transpiled code while Node.js do not need so much changes. It's now a lot better. Enjoy.
feat(webpack5): move to webpack 5, +features, +fixes fix(deps): enforce using local (local to aws-lambda-nodejs-webpack) webpack/webpack-cli binaries fix(deps): enforce using our local webpack & babel plugins/loaders feat(deps): upgrade all deps feat(deps): use webpack 5 perf(build): use webpack caching as much as possible perf(run): use production mode of webpack perf(size): separate and minify node_modules into vendor.js, this way you can still possibly debug main.js in AWS console, as long as your own code is not too big for AWS console If you're seeing issues, let me know :) BREAKING CHANGE: We're now using Webpack 5. If you're seeing anything weird, let us know.
PreviousNext