Explorar el Código

fix:Vite CJS Node API deprecated waring

崮生 hace 7 meses
padre
commit
90fa5ffd81
Se han modificado 4 ficheros con 5 adiciones y 4 borrados
  1. 0 0
      .eslintrc.cjs
  2. 3 3
      .vscode/settings.json
  3. 1 0
      package.json
  4. 1 1
      postcss.config.js

+ 0 - 0
.eslintrc.js → .eslintrc.cjs


+ 3 - 3
.vscode/settings.json

@@ -83,8 +83,8 @@
     "editor.defaultFormatter": "esbenp.prettier-vscode"
   },
   "editor.codeActionsOnSave": {
-    "source.fixAll.eslint": "explicit",
-    "source.fixAll.stylelint": "explicit"
+    // "source.fixAll.eslint": "explicit",
+    // "source.fixAll.stylelint": "explicit"
   },
   "[vue]": {
     "editor.defaultFormatter": "esbenp.prettier-vscode"
@@ -138,7 +138,7 @@
     "*.ts": "$(capture).test.ts, $(capture).test.tsx",
     "*.tsx": "$(capture).test.ts, $(capture).test.tsx",
     "*.env": "$(capture).env.*",
-    "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"
+    "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"
   },
   "terminal.integrated.scrollback": 10000,
   "nuxt.isNuxtApp": false

+ 1 - 0
package.json

@@ -4,6 +4,7 @@
   "description": "基于vue3、vite4、element-plus、typesScript",
   "author": "xingyu",
   "private": false,
+  "type": "module",
   "scripts": {
     "i": "pnpm install",
     "dev": "vite --mode env.local",

+ 1 - 1
postcss.config.js

@@ -1,4 +1,4 @@
-module.exports = {
+export default  {
   plugins: {
     autoprefixer: {}
   }