Skip to content

Commit 90fa5ff

Browse files
committed
fix:Vite CJS Node API deprecated waring
1 parent 49fc9b5 commit 90fa5ff

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
File renamed without changes.

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
"editor.defaultFormatter": "esbenp.prettier-vscode"
8484
},
8585
"editor.codeActionsOnSave": {
86-
"source.fixAll.eslint": "explicit",
87-
"source.fixAll.stylelint": "explicit"
86+
// "source.fixAll.eslint": "explicit",
87+
// "source.fixAll.stylelint": "explicit"
8888
},
8989
"[vue]": {
9090
"editor.defaultFormatter": "esbenp.prettier-vscode"
@@ -138,7 +138,7 @@
138138
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
139139
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
140140
"*.env": "$(capture).env.*",
141-
"package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
141+
"package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.cjs,.eslintignore"
142142
},
143143
"terminal.integrated.scrollback": 10000,
144144
"nuxt.isNuxtApp": false

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "基于vue3、vite4、element-plus、typesScript",
55
"author": "xingyu",
66
"private": false,
7+
"type": "module",
78
"scripts": {
89
"i": "pnpm install",
910
"dev": "vite --mode env.local",

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
plugins: {
33
autoprefixer: {}
44
}

0 commit comments

Comments
 (0)