diff --git a/package.json b/package.json index 6d6e8688..e74b1b01 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "tsx": "^4.15.5", "typescript": "^5.4.5", "unbuild": "2.0.0", - "vite": "^5.2.12", + "vite": "/Users/likui/Github/rolldown-vite/packages/vite", "vitest": "^1.6.0", "vue": "^3.4.29" }, diff --git a/packages/plugin-vue-jsx/package.json b/packages/plugin-vue-jsx/package.json index c7d4532a..9e276640 100644 --- a/packages/plugin-vue-jsx/package.json +++ b/packages/plugin-vue-jsx/package.json @@ -39,10 +39,10 @@ "@vue/babel-plugin-jsx": "^1.2.2" }, "devDependencies": { - "vite": "^5.2.12" + "vite": "/Users/likui/Github/rolldown-vite/packages/vite" }, "peerDependencies": { - "vite": "^5.0.0", + "vite": "/Users/likui/Github/rolldown-vite/packages/vite", "vue": "^3.0.0" } } diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index b5ad90c5..889b59fd 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -34,7 +34,7 @@ }, "homepage": "https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme", "peerDependencies": { - "vite": "^5.0.0", + "vite": "/Users/likui/Github/rolldown-vite/packages/vite", "vue": "^3.2.25" }, "devDependencies": { @@ -44,7 +44,7 @@ "rollup": "^4.18.0", "slash": "^5.1.0", "source-map-js": "^1.2.0", - "vite": "^5.2.12", + "vite": "/Users/likui/Github/rolldown-vite/packages/vite", "vue": "^3.4.29" } } diff --git a/playground/vue-jsx/TsImport.vue b/playground/vue-jsx/TsImport.vue index 50ec0609..39610454 100644 --- a/playground/vue-jsx/TsImport.vue +++ b/playground/vue-jsx/TsImport.vue @@ -6,7 +6,7 @@ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5b5fd835..8afc78b9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,8 +105,8 @@ importers: specifier: 2.0.0 version: 2.0.0(sass@1.77.5)(typescript@5.4.5) vite: - specifier: ^5.2.12 - version: 5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) + specifier: /Users/likui/Github/rolldown-vite/packages/vite + version: link:../rolldown-vite/packages/vite vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) @@ -135,8 +135,8 @@ importers: specifier: ^1.2.0 version: 1.2.0 vite: - specifier: ^5.2.12 - version: 5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) + specifier: /Users/likui/Github/rolldown-vite/packages/vite + version: link:../../../rolldown-vite/packages/vite vue: specifier: ^3.4.29 version: 3.4.29(typescript@5.4.5) @@ -154,8 +154,8 @@ importers: version: 1.2.2(@babel/core@7.24.7) devDependencies: vite: - specifier: ^5.2.12 - version: 5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) + specifier: /Users/likui/Github/rolldown-vite/packages/vite + version: link:../../../rolldown-vite/packages/vite playground: devDependencies: @@ -300,7 +300,7 @@ importers: devDependencies: '@vitejs/plugin-legacy': specifier: ^5.4.1 - version: 5.4.1(vite@5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0)) + version: 5.4.1(vite@5.3.3(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0)) '@vitejs/plugin-vue': specifier: workspace:* version: link:../../packages/plugin-vue @@ -4061,6 +4061,10 @@ packages: resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} engines: {node: ^10 || ^12 || >=14} + postcss@8.4.39: + resolution: {integrity: sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==} + engines: {node: ^10 || ^12 || >=14} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -4775,6 +4779,34 @@ packages: terser: optional: true + vite@5.3.3: + resolution: {integrity: sha512-NPQdeCU0Dv2z5fu+ULotpuq5yfCS1BzKUIPhNbP3YBfAMGJXbt2nS+sbTFu+qchaqWTD+H3JK++nRwr6XIcp6A==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + vitest@1.6.0: resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -6440,7 +6472,7 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-legacy@5.4.1(vite@5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0))': + '@vitejs/plugin-legacy@5.4.1(vite@5.3.3(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0))': dependencies: '@babel/core': 7.24.7 '@babel/preset-env': 7.24.6(@babel/core@7.24.7) @@ -6450,7 +6482,7 @@ snapshots: magic-string: 0.30.10 regenerator-runtime: 0.14.1 systemjs: 6.15.1 - vite: 5.2.12(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) + vite: 5.3.3(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0) transitivePeerDependencies: - supports-color @@ -8746,6 +8778,12 @@ snapshots: picocolors: 1.0.1 source-map-js: 1.2.0 + postcss@8.4.39: + dependencies: + nanoid: 3.3.7 + picocolors: 1.0.1 + source-map-js: 1.2.0 + prelude-ls@1.2.1: {} prettier@3.3.2: {} @@ -9570,6 +9608,18 @@ snapshots: sass: 1.77.5 stylus: 0.63.0 + vite@5.3.3(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.39 + rollup: 4.18.0 + optionalDependencies: + '@types/node': 20.14.2 + fsevents: 2.3.3 + less: 4.2.0 + sass: 1.77.5 + stylus: 0.63.0 + vitest@1.6.0(@types/node@20.14.2)(less@4.2.0)(sass@1.77.5)(stylus@0.63.0): dependencies: '@vitest/expect': 1.6.0 diff --git a/vitest.config.e2e.ts b/vitest.config.e2e.ts index 35b9bdf4..a32abbf2 100644 --- a/vitest.config.e2e.ts +++ b/vitest.config.e2e.ts @@ -14,7 +14,7 @@ export default defineConfig({ }, }, test: { - include: ['./playground/**/*.spec.[tj]s'], + include: ['./playground/vue/**/*.spec.[tj]s'], setupFiles: ['./playground/vitestSetup.ts'], globalSetup: ['./playground/vitestGlobalSetup.ts'], testTimeout: timeout,