Skip to content

Commit 35c1163

Browse files
committed
refactor: update imports for vue/compiler-sfc to esm-browser version
- Replaced imports from 'vue/compiler-sfc' with '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js' in prettierCode.ts, transformCss.ts, and transformVue.ts. - Added type declaration for the new import path in a new types/vue-compiler-sfc.d.ts file. - Updated tsconfig.json to include custom type roots. - fix: transform error close: #30, #31, #32,
1 parent 1b744f7 commit 35c1163

File tree

8 files changed

+1110
-578
lines changed

8 files changed

+1110
-578
lines changed

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,45 +56,44 @@
5656
"typecheck": "tsc --noEmit"
5757
},
5858
"dependencies": {
59-
"@vue/compiler-sfc": "3.3.4"
59+
"@vue/compiler-sfc": "3.5.13"
6060
},
6161
"devDependencies": {
62-
"@antfu/eslint-config": "^3.14.0",
62+
"@antfu/eslint-config": "^3.16.0",
6363
"@babel/core": "7.21.0",
6464
"@babel/eslint-parser": "7.19.1",
6565
"@babel/plugin-syntax-import-meta": "7.10.4",
6666
"@babel/plugin-transform-typescript": "7.21.0",
6767
"@rollup/pluginutils": "^5.1.4",
6868
"@simon_he/colorize": "^0.0.1",
6969
"@types/babel__core": "^7.20.5",
70-
"@types/less": "^3.0.7",
71-
"@types/node": "^18.19.71",
70+
"@types/less": "^3.0.8",
71+
"@types/node": "^18.19.86",
7272
"@types/stylus": "^0.48.43",
7373
"@unocss/preset-uno": "^0.50.8",
74-
"@vue/babel-plugin-jsx": "^1.2.5",
74+
"@vue/babel-plugin-jsx": "^1.4.0",
7575
"bumpp": "^8.2.1",
76-
"eslint": "^9.18.0",
76+
"eslint": "^9.24.0",
7777
"esno": "^0.16.3",
7878
"fast-glob": "^3.3.3",
7979
"find-up": "^7.0.0",
80-
"less": "^4.2.1",
80+
"less": "^4.3.0",
8181
"less-plugin-module-resolver": "^1.0.3",
8282
"lint-staged": "^13.3.0",
8383
"magic-string": "^0.30.17",
8484
"picocolors": "^1.1.1",
85-
"pnpm": "^9.15.4",
86-
"prettier": "^3.4.2",
85+
"prettier": "^3.5.3",
8786
"rimraf": "^6.0.1",
88-
"sass": "^1.83.4",
89-
"simple-git-hooks": "^2.11.1",
87+
"sass": "^1.86.3",
88+
"simple-git-hooks": "^2.12.1",
9089
"stylus": "^0.63.0",
9190
"transform-to-unocss": "workspace:^",
92-
"transform-to-unocss-core": "^0.0.31",
91+
"transform-to-unocss-core": "^0.0.33",
9392
"tsup": "^6.7.0",
9493
"tsx": "^3.14.0",
95-
"typescript": "^5.7.3",
94+
"typescript": "^5.8.3",
9695
"unplugin": "^1.16.1",
97-
"vitest": "^2.1.8"
96+
"vitest": "^2.1.9"
9897
},
9998
"lint-staged": {
10099
"*": [

playground/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"private": true,
4-
"packageManager": "[email protected].4",
4+
"packageManager": "[email protected].9",
55
"scripts": {
66
"build": "vite build",
77
"dev": "vite --port 3333 --open",
@@ -19,10 +19,10 @@
1919
"@antfu/eslint-config": "^0.34.2",
2020
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
2121
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
22-
"@iconify-json/carbon": "^1.2.5",
23-
"@iconify/json": "^2.2.297",
22+
"@iconify-json/carbon": "^1.2.8",
23+
"@iconify/json": "^2.2.326",
2424
"@simon_he/git-fork-vue": "^0.0.11",
25-
"@types/node": "^18.19.71",
25+
"@types/node": "^18.19.86",
2626
"@unocss/reset": "^0.47.6",
2727
"@vitejs/plugin-vue": "^3.2.0",
2828
"@vue/test-utils": "^2.4.6",
@@ -35,12 +35,12 @@
3535
"unocss": "^0.50.8",
3636
"unplugin-auto-import": "^0.12.2",
3737
"unplugin-vue-components": "^0.18.5",
38-
"vite": "^5.4.11",
38+
"vite": "^6.2.6",
3939
"vite-plugin-pages": "^0.28.0",
4040
"vitest": "^0.7.13",
4141
"vivid-typing": "^1.1.46",
4242
"vue": "^3.5.13",
43-
"vue-i18n": "^9.14.2",
43+
"vue-i18n": "^9.14.4",
4444
"vue-router": "^4.5.0",
4545
"vue-tsc": "^1.8.27"
4646
}

0 commit comments

Comments
 (0)