Skip to content

Commit 54a2cce

Browse files
committed
build: 📦️ i18n
1 parent 1a085cc commit 54a2cce

File tree

3 files changed

+1294
-1346
lines changed

3 files changed

+1294
-1346
lines changed

build/vite/resolve.ts

-4
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ import type { ResolveOptions, AliasOptions } from 'vite';
44
type myResolveOptions = ResolveOptions & { alias?: AliasOptions };
55

66
export function createViteResolve(mode: string, myDirname: string): myResolveOptions {
7-
// 解决警告You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
8-
const I18nAlias: AliasOptions =
9-
mode === 'development' ? { 'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js' } : {};
107
const viteResolve: myResolveOptions = {
118
// 引用别名配置
129
alias: {
1310
// 配置@别名
1411
'@': `${path.resolve(myDirname, 'src')}`,
1512
// 配置#别名
1613
'#': `${path.resolve(myDirname, 'types')}`,
17-
...I18nAlias,
1814
},
1915
// 导入时想要省略的扩展名列表。注意,不 建议忽略自定义导入类型的扩展名(例如:.vue),因为它会干扰 IDE 和类型支持。
2016
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],

package.json

+34-34
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@
3939
},
4040
"dependencies": {
4141
"@element-plus/icons-vue": "^2.1.0",
42-
"@intlify/unplugin-vue-i18n": "^0.12.3",
43-
"@jsxiaosi/utils": "^0.0.16",
44-
"@logicflow/core": "^1.2.10",
45-
"@logicflow/extension": "^1.2.10",
46-
"@vueuse/core": "^10.3.0",
47-
"axios": "^1.4.0",
42+
"@intlify/unplugin-vue-i18n": "^1.0.1",
43+
"@jsxiaosi/utils": "^0.0.17",
44+
"@logicflow/core": "^1.2.12",
45+
"@logicflow/extension": "^1.2.13",
46+
"@vueuse/core": "^10.4.1",
47+
"axios": "^1.5.0",
4848
"dayjs": "^1.11.9",
4949
"docx-preview": "^0.1.18",
5050
"echarts": "^5.4.3",
51-
"element-plus": "^2.3.9",
51+
"element-plus": "^2.3.12",
5252
"es6-promise": "^4.2.8",
53-
"i18next": "^23.4.1",
54-
"intro.js": "^7.0.1",
53+
"i18next": "^23.5.0",
54+
"intro.js": "^7.2.0",
5555
"lodash": "^4.17.21",
5656
"lodash-es": "^4.17.21",
57-
"marked": "^4.3.0",
57+
"marked": "^8.0.1",
5858
"mitt": "^3.0.1",
5959
"mockjs": "^1.1.0",
6060
"nprogress": "^0.2.0",
@@ -63,7 +63,7 @@
6363
"qs": "^6.11.2",
6464
"sortablejs": "^1.15.0",
6565
"vue": "^3.3.4",
66-
"vue-i18n": "^9.2.2",
66+
"vue-i18n": "^9.3.0",
6767
"vue-pdf-embed": "^1.1.6",
6868
"vue-router": "^4.2.4",
6969
"vue-types": "^5.1.1",
@@ -75,56 +75,56 @@
7575
"@jsxiaosi/commitlint-config": "^0.0.14",
7676
"@jsxiaosi/eslint-config-prettier": "^0.0.14",
7777
"@jsxiaosi/eslint-config-vue": "^0.0.14",
78-
"@types/core-js": "^2.5.5",
78+
"@types/core-js": "^2.5.6",
7979
"@types/intro.js": "^5.1.1",
80-
"@types/lodash-es": "^4.17.8",
81-
"@types/marked": "^4.3.0",
80+
"@types/lodash-es": "^4.17.9",
81+
"@types/marked": "^5.0.1",
8282
"@types/node": "*",
8383
"@types/nprogress": "^0.2.0",
84-
"@types/qs": "^6.9.7",
85-
"@types/sortablejs": "^1.15.1",
86-
"@vitejs/plugin-vue": "^4.2.3",
87-
"@vitejs/plugin-vue-jsx": "^3.0.1",
84+
"@types/qs": "^6.9.8",
85+
"@types/sortablejs": "^1.15.2",
86+
"@vitejs/plugin-vue": "^4.3.4",
87+
"@vitejs/plugin-vue-jsx": "^3.0.2",
8888
"@vue/test-utils": "^2.4.1",
89-
"autoprefixer": "^10.4.14",
90-
"conventional-changelog-cli": "^3.0.0",
89+
"autoprefixer": "^10.4.15",
90+
"conventional-changelog-cli": "^4.0.0",
9191
"cross-env": "^7.0.3",
92-
"czg": "^1.7.0",
92+
"czg": "^1.7.1",
9393
"echarts-wordcloud": "^2.1.0",
94-
"eslint": "^8.46.0",
94+
"eslint": "^8.48.0",
9595
"eslint-plugin-jsonc": "^2.9.0",
9696
"http-server": "^14.1.1",
9797
"husky": "^8.0.3",
9898
"jsdom": "^22.1.0",
9999
"kolorist": "^1.8.0",
100-
"lint-staged": "^13.2.3",
101-
"postcss": "^8.4.27",
100+
"lint-staged": "^14.0.1",
101+
"postcss": "^8.4.29",
102102
"postcss-html": "^1.5.0",
103103
"postcss-import": "^15.1.0",
104-
"postcss-scss": "^4.0.6",
104+
"postcss-scss": "^4.0.7",
105105
"prettier": "^2.8.8",
106106
"pretty-quick": "^3.1.3",
107107
"rollup-plugin-visualizer": "^5.9.2",
108-
"sass": "^1.64.2",
109-
"stylelint": "^15.10.2",
108+
"sass": "^1.66.1",
109+
"stylelint": "^15.10.3",
110110
"stylelint-config-recess-order": "^4.3.0",
111111
"stylelint-config-standard": "^34.0.0",
112112
"stylelint-order": "^6.0.3",
113-
"stylelint-scss": "^5.0.1",
114-
"typescript": "^5.1.6",
113+
"stylelint-scss": "^5.1.0",
114+
"typescript": "^5.2.2",
115115
"unplugin-element-plus": "^0.8.0",
116-
"vite": "^4.4.8",
116+
"vite": "^4.4.9",
117117
"vite-plugin-compression": "^0.5.1",
118118
"vite-plugin-imagemin": "^0.6.1",
119-
"vite-plugin-inspect": "^0.7.35",
120-
"vite-plugin-linter": "^2.0.2",
119+
"vite-plugin-inspect": "^0.7.38",
120+
"vite-plugin-linter": "^2.0.5",
121121
"vite-plugin-mock": "2.9.6",
122122
"vite-plugin-pwa": "^0.16.4",
123123
"vite-plugin-style-import": "^2.0.0",
124124
"vite-plugin-svg-icons": "^2.0.1",
125-
"vitest": "^0.34.1",
125+
"vitest": "^0.34.3",
126126
"vue-eslint-parser": "^9.3.1",
127-
"vue-tsc": "^1.8.8",
127+
"vue-tsc": "^1.8.10",
128128
"xlsx": "^0.18.5"
129129
},
130130
"pnpm": {

0 commit comments

Comments
 (0)