Skip to content

Commit d2a0123

Browse files
committed
feat: use webpack 5
1 parent 4e87999 commit d2a0123

File tree

3 files changed

+1696
-2144
lines changed

3 files changed

+1696
-2144
lines changed

config/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config = {
88
750: 1,
99
828: 1.81 / 2
1010
},
11+
compiler: 'webpack5',
1112
sourceRoot: "src",
1213
outputRoot: `dist/${process.env.TARO_ENV}`,
1314
plugins: [],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@
6565
"react-dom": "^17.0.2",
6666
"react-native": "^0.68.2",
6767
"react-refresh": "^0.14.0",
68+
"webpack": "5.69.0",
6869
"taro-ui": "^3.0.0-alpha.3"
6970
},
7071
"devDependencies": {
7172
"@babel/core": "^7.8.0",
7273
"@commitlint/cli": "^11.0.0",
7374
"@commitlint/config-conventional": "^11.0.0",
74-
"@tarojs/mini-runner": "^3.5.2",
75-
"@tarojs/webpack-runner": "^3.5.2",
75+
"@tarojs/webpack5-runner": "^3.5.2",
7676
"@types/react": "^17.0.2",
7777
"@types/webpack-env": "^1.13.6",
7878
"@typescript-eslint/eslint-plugin": "^2.x",

0 commit comments

Comments
 (0)