Skip to content

Commit

Permalink
feat!: only support modern browsers
Browse files Browse the repository at this point in the history
BREAKING CHANGE: import.meta support required. Baidu, QQ, UC, and KaiOs browsers not supported.
  • Loading branch information
emuvente committed May 31, 2024
1 parent 61e80af commit 78fdf26
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 125 deletions.
136 changes: 19 additions & 117 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@
"@testing-library/cypress": "^8.0.3",
"@testing-library/user-event": "^14.2.0",
"@testing-library/vue": "^8.0.3",
"@vitejs/plugin-legacy": "^5.4.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/compiler-sfc": "^3.4.27",
"@vue/vue3-jest": "^29.2.6",
Expand Down Expand Up @@ -201,7 +200,6 @@
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-config-standard-vue": "^1.0.0",
"tailwindcss": "^3.4.3",
"terser": "^5.31.0",
"vite": "^5.2.11",
"vite-bundle-visualizer": "^1.2.1",
"vite-plugin-graphql-loader": "^3.0.1",
Expand All @@ -215,8 +213,7 @@
"npm": ">= 10.2.4"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 9"
"defaults and fully supports es6-module-dynamic-import",
"maintained node versions"
]
}
3 changes: 0 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vue from '@vitejs/plugin-vue';
import GitRevisionPlugin from 'git-revision-webpack-plugin';
import graphQLLoader from 'vite-plugin-graphql-loader';
// import htmlPurge from 'vite-plugin-html-purgecss';
import legacy from '@vitejs/plugin-legacy';
import svgLoader from 'vite-svg-loader';
import svgStore from 'vite-plugin-svg-store';
import autoprefixer from 'autoprefixer';
Expand Down Expand Up @@ -84,8 +83,6 @@ export default defineConfig({
graphQLLoader(),
// this is supposed to be equivalent to mini-css-extract-plugin, not sure if that's true
// htmlPurge(),
// polyfill for older browsers. requires terser
legacy(),
// load svg files as vue components
svgLoader({
svgoConfig: {
Expand Down

0 comments on commit 78fdf26

Please sign in to comment.