Skip to content

Commit

Permalink
Maintenance: Use webpack 5 with esbuild, instead of rspack (#181)
Browse files Browse the repository at this point in the history
This fixes issues that were only noticed in production when switching to rspack. Specifically, swc (the transpiler used by rspack) has some opinionated behaviors that break certain FFZ workflows.

As a bonus, this seems to be faster? Somehow? I don't get it, but hurrah.

[skip ci]
  • Loading branch information
SirStendec authored Sep 1, 2023
1 parent 248aa0d commit baee239
Show file tree
Hide file tree
Showing 5 changed files with 736 additions and 1,183 deletions.
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"es6",
"es2017"
],
"target": "es2017",
"target": "esnext",
"module": "es6"
}
}
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,39 @@
"description": "Addons for FrankerFaceZ",
"private": true,
"scripts": {
"start": "cross-env SERVING=true rspack serve",
"start:prod": "cross-env SERVING=true NODE_ENV=production rspack serve",
"build": "rspack build && node bin/addon_hash",
"start": "cross-env NODE_ENV=development webpack serve",
"start:prod": "cross-env NODE_ENV=production webpack serve",
"build": "cross-env NODE_ENV=production webpack build && node bin/addon_hash",
"build:dev": "cross-env NODE_ENV=development webpack build && node bin/addon_hash",
"clean": "rimraf dist",
"eslint": "eslint \"src/**/*.{js,jsx,vue}\"",
"update-times": "node bin/update_times",
"prepare": "husky install"
},
"devDependencies": {
"@rspack/cli": "^0.3.0",
"@rspack/plugin-minify": "^0.3.0",
"browserslist": "^4.21.10",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"esbuild-loader": "^4.0.2",
"eslint": "^8.48.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-vue": "^9.17.0",
"extract-loader": "^5.1.0",
"file-loader": "^6.2.0",
"husky": "^8.0.3",
"minify-graphql-loader": "^1.0.2",
"rimraf": "^5.0.1",
"rspack-manifest-plugin": "5.0.0-alpha0",
"sass": "^1.66.1",
"sass-loader": "^13.3.2",
"staged-git-files": "^1.3.0",
"string-replace-loader": "^3.1.0",
"vue-loader": "^15.10.2",
"vue-template-compiler": "^2.7.14"
"vue-template-compiler": "^2.7.14",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-manifest-plugin": "^5.0.0"
},
"dependencies": {
"@wizulus/code": "^1.0.2",
Expand Down
Loading

0 comments on commit baee239

Please sign in to comment.