create-packer 1.45.10 → 1.45.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/template/web-app/react-rsbuild/package.json +6 -6
- package/template/web-app/react-vite/global.css.ts +5 -5
- package/template/web-app/react-vite/main.tsx +4 -4
- package/template/web-app/react-vite/package.json +78 -78
- package/template/web-app/react-vite/pages/home/view.css.ts +7 -7
- package/template/web-app/react-vite/pages/home/view.tsx +10 -10
- package/template/web-app/react-vite/postcss.config.cjs +8 -8
- package/template/web-app/react-vite/shared/styles/index.ts +1 -1
- package/template/web-app/react-vite/shared/styles/theme.css.ts +3 -3
- package/template/web-app/react-vite/vite.config.ts +65 -79
- package/template/web-app/svelte/package.json +2 -2
- package/template/web-app/vue/package.json +9 -9
- package/template/web-app/vue-rsbuild/package.json +9 -9
- package/template/web-extension/package.json +3 -3
- package/template/web-extension/shared/content/message.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-packer",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.12",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "https://github.com/kevily/create-packer",
|
|
6
6
|
"author": "1k <bug_zero@163.com>",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"clean:pkg": "pnpm -r exec rimraf node_modules",
|
|
54
54
|
"commit": "git add . && cz",
|
|
55
55
|
"push": "pnpm run commit && git push",
|
|
56
|
-
"up:rsbuild": "pnpm -r up @rsbuild/* -L",
|
|
57
|
-
"up:vite": "pnpm -r up vite @vitejs/* vite
|
|
56
|
+
"up:rsbuild": "pnpm -r up @rsbuild/* @rsdoctor/* -L",
|
|
57
|
+
"up:vite": "pnpm -r up vite @vitejs/* vite-* -L"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@commitlint/config-conventional": "17.6.1",
|
|
39
39
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
40
40
|
"@eslint/js": "9.15.0",
|
|
41
|
-
"@rsbuild/core": "1.
|
|
42
|
-
"@rsbuild/plugin-eslint": "1.1.
|
|
43
|
-
"@rsbuild/plugin-react": "1.
|
|
44
|
-
"@rsbuild/plugin-svgr": "1.2.
|
|
45
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
46
|
-
"@rsdoctor/rspack-plugin": "
|
|
41
|
+
"@rsbuild/core": "1.5.2",
|
|
42
|
+
"@rsbuild/plugin-eslint": "1.1.2",
|
|
43
|
+
"@rsbuild/plugin-react": "1.4.0",
|
|
44
|
+
"@rsbuild/plugin-svgr": "1.2.2",
|
|
45
|
+
"@rsbuild/plugin-type-check": "1.2.4",
|
|
46
|
+
"@rsdoctor/rspack-plugin": "1.2.3",
|
|
47
47
|
"@types/node": "18.16.0",
|
|
48
48
|
"@types/qs": "6.9.7",
|
|
49
49
|
"@types/react": "18.3.3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { globalStyle } from '@vanilla-extract/css'
|
|
2
|
-
|
|
3
|
-
globalStyle('body', {
|
|
4
|
-
margin: 0
|
|
5
|
-
})
|
|
1
|
+
import { globalStyle } from '@vanilla-extract/css'
|
|
2
|
+
|
|
3
|
+
globalStyle('body', {
|
|
4
|
+
margin: 0
|
|
5
|
+
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { startApp } from '@/domain/app'
|
|
2
|
-
import './global.css'
|
|
3
|
-
|
|
4
|
-
startApp()
|
|
1
|
+
import { startApp } from '@/domain/app'
|
|
2
|
+
import './global.css'
|
|
3
|
+
|
|
4
|
+
startApp()
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-vite",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"prepare": "husky install",
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "tsc --noEmit && vite build",
|
|
10
|
-
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
-
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
14
|
-
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
15
|
-
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
16
|
-
"cz": "cz",
|
|
17
|
-
"push": "npm run commit && git push",
|
|
18
|
-
"commit": "git add . && npm run cz"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@tanstack/react-query": "5.51.15",
|
|
22
|
-
"@vanilla-extract/css": "1.17.4",
|
|
23
|
-
"axios": "1.7.9",
|
|
24
|
-
"define-zustand": "3.4.0",
|
|
25
|
-
"es-toolkit": "1.39.8",
|
|
26
|
-
"immer": "10.0.1",
|
|
27
|
-
"qs": "6.11.2",
|
|
28
|
-
"react": "18.3.1",
|
|
29
|
-
"react-dom": "18.3.1",
|
|
30
|
-
"react-router": "7.5.0",
|
|
31
|
-
"react-use": "17.5.0",
|
|
32
|
-
"type-fest": "4.33.0",
|
|
33
|
-
"zustand": "5.0.3"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@commitlint/cli": "17.6.1",
|
|
37
|
-
"@commitlint/config-conventional": "17.6.1",
|
|
38
|
-
"@commitlint/cz-commitlint": "17.5.0",
|
|
39
|
-
"@emotion/babel-plugin": "11.13.5",
|
|
40
|
-
"@eslint/js": "9.15.0",
|
|
41
|
-
"@faker-js/faker": "8.4.1",
|
|
42
|
-
"@types/node": "18.16.0",
|
|
43
|
-
"@types/qs": "6.9.7",
|
|
44
|
-
"@types/react": "18.3.3",
|
|
45
|
-
"@types/react-dom": "18.3.0",
|
|
46
|
-
"@vanilla-extract/vite-plugin": "5.1.1",
|
|
47
|
-
"@vitejs/plugin-react": "
|
|
48
|
-
"autoprefixer": "10.4.14",
|
|
49
|
-
"commitizen": "4.3.0",
|
|
50
|
-
"cssnano": "6.0.0",
|
|
51
|
-
"eslint": "9.17.0",
|
|
52
|
-
"eslint-import-resolver-typescript": "3.7.0",
|
|
53
|
-
"eslint-plugin-import": "2.31.0",
|
|
54
|
-
"eslint-plugin-react": "7.37.2",
|
|
55
|
-
"eslint-plugin-react-hooks": "5.1.0",
|
|
56
|
-
"globals": "15.12.0",
|
|
57
|
-
"husky": "9.1.6",
|
|
58
|
-
"inquirer": "^8.1.2",
|
|
59
|
-
"postcss": "8.4.35",
|
|
60
|
-
"postcss-import": "16.0.1",
|
|
61
|
-
"postcss-nesting": "12.0.3",
|
|
62
|
-
"prettier": "3.2.5",
|
|
63
|
-
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
-
"stylelint": "16.10.0",
|
|
65
|
-
"stylelint-config-standard": "36.0.1",
|
|
66
|
-
"typescript": "5.8.2",
|
|
67
|
-
"typescript-eslint": "8.15.0",
|
|
68
|
-
"vite": "
|
|
69
|
-
"vite-plugin-checker": "0.
|
|
70
|
-
"vite-plugin-mock-dev-server": "1.
|
|
71
|
-
"vite-plugin-svgr": "4.
|
|
72
|
-
},
|
|
73
|
-
"config": {
|
|
74
|
-
"commitizen": {
|
|
75
|
-
"path": "@commitlint/cz-commitlint"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-vite",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "husky install",
|
|
8
|
+
"dev": "vite",
|
|
9
|
+
"build": "tsc --noEmit && vite build",
|
|
10
|
+
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
+
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
14
|
+
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
15
|
+
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
16
|
+
"cz": "cz",
|
|
17
|
+
"push": "npm run commit && git push",
|
|
18
|
+
"commit": "git add . && npm run cz"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@tanstack/react-query": "5.51.15",
|
|
22
|
+
"@vanilla-extract/css": "1.17.4",
|
|
23
|
+
"axios": "1.7.9",
|
|
24
|
+
"define-zustand": "3.4.0",
|
|
25
|
+
"es-toolkit": "1.39.8",
|
|
26
|
+
"immer": "10.0.1",
|
|
27
|
+
"qs": "6.11.2",
|
|
28
|
+
"react": "18.3.1",
|
|
29
|
+
"react-dom": "18.3.1",
|
|
30
|
+
"react-router": "7.5.0",
|
|
31
|
+
"react-use": "17.5.0",
|
|
32
|
+
"type-fest": "4.33.0",
|
|
33
|
+
"zustand": "5.0.3"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@commitlint/cli": "17.6.1",
|
|
37
|
+
"@commitlint/config-conventional": "17.6.1",
|
|
38
|
+
"@commitlint/cz-commitlint": "17.5.0",
|
|
39
|
+
"@emotion/babel-plugin": "11.13.5",
|
|
40
|
+
"@eslint/js": "9.15.0",
|
|
41
|
+
"@faker-js/faker": "8.4.1",
|
|
42
|
+
"@types/node": "18.16.0",
|
|
43
|
+
"@types/qs": "6.9.7",
|
|
44
|
+
"@types/react": "18.3.3",
|
|
45
|
+
"@types/react-dom": "18.3.0",
|
|
46
|
+
"@vanilla-extract/vite-plugin": "5.1.1",
|
|
47
|
+
"@vitejs/plugin-react": "5.0.1",
|
|
48
|
+
"autoprefixer": "10.4.14",
|
|
49
|
+
"commitizen": "4.3.0",
|
|
50
|
+
"cssnano": "6.0.0",
|
|
51
|
+
"eslint": "9.17.0",
|
|
52
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
53
|
+
"eslint-plugin-import": "2.31.0",
|
|
54
|
+
"eslint-plugin-react": "7.37.2",
|
|
55
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
56
|
+
"globals": "15.12.0",
|
|
57
|
+
"husky": "9.1.6",
|
|
58
|
+
"inquirer": "^8.1.2",
|
|
59
|
+
"postcss": "8.4.35",
|
|
60
|
+
"postcss-import": "16.0.1",
|
|
61
|
+
"postcss-nesting": "12.0.3",
|
|
62
|
+
"prettier": "3.2.5",
|
|
63
|
+
"rollup-plugin-visualizer": "5.12.0",
|
|
64
|
+
"stylelint": "16.10.0",
|
|
65
|
+
"stylelint-config-standard": "36.0.1",
|
|
66
|
+
"typescript": "5.8.2",
|
|
67
|
+
"typescript-eslint": "8.15.0",
|
|
68
|
+
"vite": "7.1.3",
|
|
69
|
+
"vite-plugin-checker": "0.10.2",
|
|
70
|
+
"vite-plugin-mock-dev-server": "1.9.3",
|
|
71
|
+
"vite-plugin-svgr": "4.5.0"
|
|
72
|
+
},
|
|
73
|
+
"config": {
|
|
74
|
+
"commitizen": {
|
|
75
|
+
"path": "@commitlint/cz-commitlint"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { style } from '@vanilla-extract/css'
|
|
2
|
-
|
|
3
|
-
export const root = style({
|
|
4
|
-
display: 'flex',
|
|
5
|
-
alignItems: 'center',
|
|
6
|
-
justifyContent: 'center'
|
|
7
|
-
})
|
|
1
|
+
import { style } from '@vanilla-extract/css'
|
|
2
|
+
|
|
3
|
+
export const root = style({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
justifyContent: 'center'
|
|
7
|
+
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useHomeData } from '@/shared/service'
|
|
2
|
-
import * as styles from './view.css'
|
|
3
|
-
|
|
4
|
-
export default function Home() {
|
|
5
|
-
const { data } = useHomeData()
|
|
6
|
-
|
|
7
|
-
console.log('data', data)
|
|
8
|
-
|
|
9
|
-
return <div className={styles.root}>sdfs</div>
|
|
10
|
-
}
|
|
1
|
+
import { useHomeData } from '@/shared/service'
|
|
2
|
+
import * as styles from './view.css'
|
|
3
|
+
|
|
4
|
+
export default function Home() {
|
|
5
|
+
const { data } = useHomeData()
|
|
6
|
+
|
|
7
|
+
console.log('data', data)
|
|
8
|
+
|
|
9
|
+
return <div className={styles.root}>sdfs</div>
|
|
10
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
plugins: {
|
|
3
|
-
'postcss-import': {},
|
|
4
|
-
'postcss-nesting': {},
|
|
5
|
-
autoprefixer: {},
|
|
6
|
-
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
'postcss-import': {},
|
|
4
|
+
'postcss-nesting': {},
|
|
5
|
+
autoprefixer: {},
|
|
6
|
+
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './theme.css'
|
|
1
|
+
export * from './theme.css'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { createTheme } from '@vanilla-extract/css'
|
|
2
|
-
|
|
3
|
-
export const [themeClass, themeVars] = createTheme({})
|
|
1
|
+
import { createTheme } from '@vanilla-extract/css'
|
|
2
|
+
|
|
3
|
+
export const [themeClass, themeVars] = createTheme({})
|
|
@@ -1,79 +1,65 @@
|
|
|
1
|
-
import { defineConfig, loadEnv } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import svgr from 'vite-plugin-svgr'
|
|
4
|
-
import
|
|
5
|
-
import checker from 'vite-plugin-checker'
|
|
6
|
-
import { visualizer } from 'rollup-plugin-visualizer'
|
|
7
|
-
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
|
|
8
|
-
import { createChunks } from './scripts'
|
|
9
|
-
|
|
10
|
-
// https://vitejs.dev/config/
|
|
11
|
-
export default defineConfig(({ mode }) => {
|
|
12
|
-
const env = loadEnv(mode, process.cwd(), '')
|
|
13
|
-
const proxyBaseUrl = env.VITE_BASE_URL + env.VITE_API_HOST
|
|
14
|
-
const plugins: any[] = [
|
|
15
|
-
vanillaExtractPlugin(),
|
|
16
|
-
svgr(),
|
|
17
|
-
|
|
18
|
-
include: ['**/*.mock.{ts,js}']
|
|
19
|
-
}),
|
|
20
|
-
checker({
|
|
21
|
-
enableBuild: false,
|
|
22
|
-
typescript: true,
|
|
23
|
-
eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
|
|
24
|
-
}),
|
|
25
|
-
react(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
server: {
|
|
69
|
-
host: '0.0.0.0',
|
|
70
|
-
proxy: {
|
|
71
|
-
[proxyBaseUrl]: {
|
|
72
|
-
target: 'http://127.0.0.1',
|
|
73
|
-
changeOrigin: true,
|
|
74
|
-
rewrite: path => path.replace(proxyBaseUrl, '')
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
})
|
|
1
|
+
import { defineConfig, loadEnv } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import svgr from 'vite-plugin-svgr'
|
|
4
|
+
import { mockDevServerPlugin } from 'vite-plugin-mock-dev-server'
|
|
5
|
+
import checker from 'vite-plugin-checker'
|
|
6
|
+
import { visualizer } from 'rollup-plugin-visualizer'
|
|
7
|
+
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
|
|
8
|
+
import { createChunks } from './scripts'
|
|
9
|
+
|
|
10
|
+
// https://vitejs.dev/config/
|
|
11
|
+
export default defineConfig(({ mode }) => {
|
|
12
|
+
const env = loadEnv(mode, process.cwd(), '')
|
|
13
|
+
const proxyBaseUrl = env.VITE_BASE_URL + env.VITE_API_HOST
|
|
14
|
+
const plugins: any[] = [
|
|
15
|
+
vanillaExtractPlugin(),
|
|
16
|
+
svgr(),
|
|
17
|
+
mockDevServerPlugin({
|
|
18
|
+
include: ['**/*.mock.{ts,js}']
|
|
19
|
+
}),
|
|
20
|
+
checker({
|
|
21
|
+
enableBuild: false,
|
|
22
|
+
typescript: true,
|
|
23
|
+
eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
|
|
24
|
+
}),
|
|
25
|
+
react()
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
if (mode === 'analyse') {
|
|
29
|
+
plugins.push(visualizer({ open: true, sourcemap: true, brotliSize: true, gzipSize: true }))
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
base: env.VITE_BASE_URL,
|
|
34
|
+
plugins,
|
|
35
|
+
resolve: {
|
|
36
|
+
alias: {
|
|
37
|
+
'@': __dirname
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
esbuild: {
|
|
41
|
+
drop: ['production', 'analyse'].includes(mode) ? ['console', 'debugger'] : []
|
|
42
|
+
},
|
|
43
|
+
build: {
|
|
44
|
+
sourcemap: mode === 'analyse',
|
|
45
|
+
reportCompressedSize: mode === 'analyse',
|
|
46
|
+
rollupOptions: {
|
|
47
|
+
output: {
|
|
48
|
+
manualChunks: createChunks({
|
|
49
|
+
react: ['react', 'react-dom']
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
server: {
|
|
55
|
+
host: '0.0.0.0',
|
|
56
|
+
proxy: {
|
|
57
|
+
[proxyBaseUrl]: {
|
|
58
|
+
target: 'http://127.0.0.1',
|
|
59
|
+
changeOrigin: true,
|
|
60
|
+
rewrite: path => path.replace(proxyBaseUrl, '')
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"axios": "1.7.9",
|
|
23
23
|
"es-toolkit": "1.39.8",
|
|
24
|
-
"pinia": "
|
|
24
|
+
"pinia": "3.0.3",
|
|
25
25
|
"tailwindcss": "4.1.4",
|
|
26
26
|
"type-fest": "4.33.0",
|
|
27
|
-
"vue": "3.5.
|
|
28
|
-
"vue-router": "4.5.
|
|
27
|
+
"vue": "3.5.20",
|
|
28
|
+
"vue-router": "4.5.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@commitlint/cli": "17.6.1",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@faker-js/faker": "8.4.1",
|
|
36
36
|
"@tailwindcss/vite": "4.1.4",
|
|
37
37
|
"@types/mockjs": "1.0.10",
|
|
38
|
-
"@vitejs/plugin-vue": "
|
|
39
|
-
"@vitejs/plugin-vue-jsx": "
|
|
38
|
+
"@vitejs/plugin-vue": "6.0.1",
|
|
39
|
+
"@vitejs/plugin-vue-jsx": "5.0.1",
|
|
40
40
|
"autoprefixer": "10.4.14",
|
|
41
41
|
"commitizen": "4.3.0",
|
|
42
42
|
"cssnano": "6.0.0",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"stylelint-config-standard-scss": "13.1.0",
|
|
58
58
|
"typescript": "5.8.2",
|
|
59
59
|
"typescript-eslint": "8.15.0",
|
|
60
|
-
"vite": "
|
|
61
|
-
"vite-plugin-checker": "0.
|
|
62
|
-
"vite-plugin-mock-dev-server": "1.
|
|
60
|
+
"vite": "7.1.3",
|
|
61
|
+
"vite-plugin-checker": "0.10.2",
|
|
62
|
+
"vite-plugin-mock-dev-server": "1.9.3",
|
|
63
63
|
"vite-svg-loader": "5.1.0",
|
|
64
|
-
"vue-tsc": "
|
|
64
|
+
"vue-tsc": "3.0.6"
|
|
65
65
|
},
|
|
66
66
|
"config": {
|
|
67
67
|
"commitizen": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"axios": "1.7.9",
|
|
24
24
|
"es-toolkit": "1.39.8",
|
|
25
|
-
"pinia": "
|
|
25
|
+
"pinia": "3.0.3",
|
|
26
26
|
"tailwindcss": "4.1.4",
|
|
27
27
|
"type-fest": "4.33.0",
|
|
28
|
-
"vue": "3.5.
|
|
29
|
-
"vue-router": "4.5.
|
|
28
|
+
"vue": "3.5.20",
|
|
29
|
+
"vue-router": "4.5.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@commitlint/cli": "17.6.1",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
35
35
|
"@eslint/js": "9.15.0",
|
|
36
36
|
"@faker-js/faker": "8.4.1",
|
|
37
|
-
"@rsbuild/core": "1.2
|
|
38
|
-
"@rsbuild/plugin-eslint": "1.1.
|
|
39
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
40
|
-
"@rsbuild/plugin-vue": "1.
|
|
41
|
-
"@rsdoctor/rspack-plugin": "
|
|
37
|
+
"@rsbuild/core": "1.5.2",
|
|
38
|
+
"@rsbuild/plugin-eslint": "1.1.2",
|
|
39
|
+
"@rsbuild/plugin-type-check": "1.2.4",
|
|
40
|
+
"@rsbuild/plugin-vue": "1.1.2",
|
|
41
|
+
"@rsdoctor/rspack-plugin": "1.2.3",
|
|
42
42
|
"@tailwindcss/postcss": "4.1.4",
|
|
43
43
|
"@types/mockjs": "1.0.10",
|
|
44
44
|
"autoprefixer": "10.4.14",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"stylelint-webpack-plugin": "5.0.0",
|
|
64
64
|
"typescript": "5.8.2",
|
|
65
65
|
"typescript-eslint": "8.15.0",
|
|
66
|
-
"vue-tsc": "
|
|
66
|
+
"vue-tsc": "3.0.6"
|
|
67
67
|
},
|
|
68
68
|
"config": {
|
|
69
69
|
"commitizen": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/react": "18.3.3",
|
|
50
50
|
"@types/react-dom": "18.3.0",
|
|
51
51
|
"@vanilla-extract/vite-plugin": "5.1.1",
|
|
52
|
-
"@vitejs/plugin-react": "
|
|
52
|
+
"@vitejs/plugin-react": "5.0.1",
|
|
53
53
|
"autoprefixer": "10.4.14",
|
|
54
54
|
"commitizen": "4.3.0",
|
|
55
55
|
"cssnano": "6.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"stylelint-config-standard": "36.0.1",
|
|
74
74
|
"typescript": "5.8.2",
|
|
75
75
|
"typescript-eslint": "8.28.0",
|
|
76
|
-
"vite": "
|
|
77
|
-
"vite-plugin-svgr": "4.
|
|
76
|
+
"vite": "7.1.3",
|
|
77
|
+
"vite-plugin-svgr": "4.5.0",
|
|
78
78
|
"wxt": "0.20.5"
|
|
79
79
|
},
|
|
80
80
|
"config": {
|
|
@@ -47,7 +47,9 @@ export async function sendToContent<A extends keyof messageType>(
|
|
|
47
47
|
}
|
|
48
48
|
const result = await Promise.all(
|
|
49
49
|
tabs.map(tab => {
|
|
50
|
-
return sendMessage(action, options.data as never, { tabId: tab.id! })
|
|
50
|
+
return sendMessage(action, options.data as never, { tabId: tab.id! }).catch(
|
|
51
|
+
() => void 0
|
|
52
|
+
)
|
|
51
53
|
})
|
|
52
54
|
)
|
|
53
55
|
return result
|