Skip to content

Commit

Permalink
feat: migrate to esbuild
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Migrated to to use esbuild instead of webpack but
should in most cases be plug & play
  • Loading branch information
TastefulElk committed Aug 18, 2021
1 parent b18e501 commit bb32832
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 39 deletions.
3 changes: 1 addition & 2 deletions generators/app/templates/.eslintrc.js
Expand Up @@ -15,6 +15,5 @@ module.exports = {
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
ignore: ['webpack.config.js']
}
};
4 changes: 3 additions & 1 deletion generators/app/templates/jest.config.js
@@ -1,4 +1,6 @@
module.exports = {
preset: 'ts-jest',
transform: {
"^.+\\.(j|t)sx?$": "esbuild-jest"
},
testEnvironment: 'node',
};
8 changes: 3 additions & 5 deletions generators/app/templates/package.json
Expand Up @@ -11,13 +11,11 @@
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"esbuild-jest": "^0.5.0",
"eslint": "^7.22.0",
"jest": "^26.6.3",
"serverless": "^2.29.0",
"serverless-webpack": "^5.3.5",
"ts-jest": "^26.5.3",
"ts-loader": "^8.0.18",
"typescript": "^4.2.3",
"webpack": "^5.26.0"
"serverless-esbuild": "^1.16.1",
"typescript": "^4.2.3"
}
}
6 changes: 1 addition & 5 deletions generators/app/templates/serverless.yml
@@ -1,15 +1,11 @@
service: <%= kebabCasedName %>

plugins:
- serverless-webpack
- serverless-esbuild

package:
individually: true

custom:
webpack:
packager: yarn

provider:
name: aws
region: <%= region %>
Expand Down
26 changes: 0 additions & 26 deletions generators/app/templates/webpack.config.js

This file was deleted.

0 comments on commit bb32832

Please sign in to comment.