Skip to content

Commit

Permalink
chore: 适配 pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Apr 2, 2022
1 parent 9b948a5 commit 6877a36
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 19 deletions.
11 changes: 1 addition & 10 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
env: {
development: {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
plugins: [
'dynamic-import-node'
]
}
}
]
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@mitojs/browser": "^3.0.1",
"@mitojs/vue": "^3.0.1",
"axios": "^0.26.1",
"core-js": "^3.21.1",
"dayjs": "^1.11.0",
"element-plus": "^2.1.7",
"js-cookie": "^3.0.1",
Expand All @@ -24,10 +23,8 @@
"path-to-regexp": "^6.2.0",
"pinia": "^2.0.12",
"screenfull": "^6.0.1",
"terser-webpack-plugin": "^5.3.1",
"vue": "^3.2.31",
"vue-router": "^4.0.14",
"yorkie": "^2.0.0"
"vue-router": "^4.0.14"
},
"devDependencies": {
"@types/js-cookie": "^3.0.1",
Expand All @@ -43,6 +40,7 @@
"@vue/cli-service": "^5.0.4",
"@vue/eslint-config-standard": "^6.1.0",
"@vue/eslint-config-typescript": "^10.0.0",
"core-js": "^3.21.1",
"eslint": "^8.12.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
Expand All @@ -54,8 +52,10 @@
"sass-loader": "^12.6.0",
"scp2": "^0.5.0",
"svg-sprite-loader": "^6.0.11",
"terser-webpack-plugin": "^5.3.1",
"typescript": "^4.6.3",
"webpackbar": "^5.0.2"
"webpackbar": "^5.0.2",
"yorkie": "^2.0.0"
},
"gitHooks": {
"pre-commit": "lint-staged"
Expand Down
Loading

0 comments on commit 6877a36

Please sign in to comment.