From 3bcb86e17bf92304ebe14ed7b71911d7e7fa9bd9 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Thu, 15 Aug 2024 22:03:17 +0800 Subject: [PATCH 1/4] =?UTF-8?q?chore:=20=F0=9F=A4=96=20use=20specific=20ni?= =?UTF-8?q?ghtly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vite/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/package.json b/packages/vite/package.json index ad1a63959db42d..0f29b2150704a8 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -88,7 +88,7 @@ "esbuild": "^0.21.3", "postcss": "^8.4.40", "rollup": "^4.13.0", - "rolldown": "latest" + "rolldown": "0.12.2-snapshot-7ac1381-20240815002759" }, "optionalDependencies": { "fsevents": "~2.3.3" From da2601ee905de24068c8543594a75f5fbbbe26ea Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Thu, 15 Aug 2024 22:04:32 +0800 Subject: [PATCH 2/4] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20lock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pnpm-lock.yaml | 106 ++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9a90c2c242ed16..2f658bb8192891 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -228,8 +228,8 @@ importers: specifier: ^8.4.40 version: 8.4.40 rolldown: - specifier: latest - version: 0.12.2 + specifier: 0.12.2-snapshot-7ac1381-20240815002759 + version: 0.12.2-snapshot-7ac1381-20240815002759 rollup: specifier: ^4.13.0 version: 4.18.1 @@ -2880,63 +2880,63 @@ packages: '@polka/url@1.0.0-next.24': resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} - '@rolldown/binding-darwin-arm64@0.12.2': - resolution: {integrity: sha512-Y3Ajye63Z5KymGUwTLaK7Q6YMvycXqNiXtosecgVzjAwMITCmXdzgnWgzzx5UlWHMrDYL4m5zIeXGB5slLwoMA==} + '@rolldown/binding-darwin-arm64@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-mkH2KrSv8v1yeA9qbJfGB14So1pxr8MGSXa5T03RsUHzi13vsIwnx74Sr/y2u3Mr9d157PlTBjIP5/ieITcXqg==} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@0.12.2': - resolution: {integrity: sha512-ZcVuVFEFBXhp00TUNn+EDYs7SGGLQCznvCeuW1XkM8EC2/LfewU/o4WuJK7CBC4iCSktuFGpw7+zLe8D6iinzg==} + '@rolldown/binding-darwin-x64@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-7wHcKmE8pYFhSVxixXwgYJseViRH2klJAS/Fo1eOgPxQ8nb/Gp0WTVmyDl8uXAiVxPrs7YSm+JiCLUWil2EibA==} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@0.12.2': - resolution: {integrity: sha512-4fjuQHpm3q/Ly4fcqb8Qn49OQc2EQR2scUbQaOzXr7mIn9Zy8NfdRrsVG4/wpYvihIlTEtVx+ku0IZwcUzzZGg==} + '@rolldown/binding-freebsd-x64@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-CSXNid7wXw0pIq4Hh+/mkbiD1Orq1bJdw8pMKFf7xL3JeSxMyInWmrXhrJY77BSk0+Ks2DvIVwGlj6MFJzNlRw==} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@0.12.2': - resolution: {integrity: sha512-MGEDaYLzTQ1kpvt13PzOwnd6O668S1mPM/vgi4O9vCfqJNTXZX8SeAg8Z2dQZbMSUyFDBVKGkz23GRTHqkGIsQ==} + '@rolldown/binding-linux-arm-gnueabihf@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-D9ZbPbzZL+c+w1v/3m7Wt8h2y7XJ0NhhlGWe+tPaeuwRpCO2XxYe/jjyKphYwJ7BbFxBabto+QveMnx5MKvxig==} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@0.12.2': - resolution: {integrity: sha512-8uiaMe39twyIAw0do1Gc3O2SpQmyL1A/BucFncEB8eU5jtb3BWIM/X+F+eKDU6c+XZ+S1T025dhR1cGg8y20Xw==} + '@rolldown/binding-linux-arm64-gnu@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-Zl4SzjPZXZijaZkxIdK2ncJbYdSgncztebYQduVwEpGSMayst+stJe0fofh8bkwbdfIrFa9ibNi5Uf1InpelCQ==} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-musl@0.12.2': - resolution: {integrity: sha512-GOFSKaMJueaSSODcqI+0Hu79buHYtGV7h2tydIDkSDD20mQuvwOF7jIVd27yNdlXWS9wLObwEu3BNgHmIj1M6A==} + '@rolldown/binding-linux-arm64-musl@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-11d8YGfQBcNyBtpxs5KQZyWq1VkExsL/WD//CCYbUGz04ZtjUTs/vvWw1OuRnYIvC531r4/iv5qOzGdjjR4UWQ==} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-x64-gnu@0.12.2': - resolution: {integrity: sha512-+hlRURUSiVP0+PFtjoTxUsiy/2NQpbf3DyUyMyl8Nv5+1BxjB6452VY1iFI+RzG4iLNJslcVcI6d6lJQ5zZYfw==} + '@rolldown/binding-linux-x64-gnu@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-BbkUu+BvHuBziXYG2JwY13AmgZLFSRiWwthjoWx9TZnQYKfdmSPjZ79vQ+5zOCi/OaAvTCeeAnN399Jjbh4rag==} cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-musl@0.12.2': - resolution: {integrity: sha512-9WKIaQSZZ0i9F5msW4I5kEj6ov+TZLteuTqCzI7nYWDBDm7m/hYkOkdIBf41GC8iKFsgVIQO0kRVAT966U8RxQ==} + '@rolldown/binding-linux-x64-musl@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-576ANHcgMYiSJSD+i8EB/LukNkmdox6v4oS8ZnuR0EgEg5d1sJ4/Zw+4yIHTfU0ghutwRgy5aAQy8cQg+E+D4w==} cpu: [x64] os: [linux] - '@rolldown/binding-wasm32-wasi@0.12.2': - resolution: {integrity: sha512-KY7bNrR3Jk6O0ne8LAaAnq9yI6xuKwhr/L2d1lBwrraCCyLHk0UEv4g6PfJkyUx6GfN0gVYuSxFgo9OggycldA==} + '@rolldown/binding-wasm32-wasi@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-c0oBcJz3ORemVIw4Qz4gU/t1H9DooPxDh359V5zbE6DBnleqfongl6Dps/ixZ/Kc4bxS5wUXX6IK3HZbEepBSg==} engines: {node: '>=14.21.3'} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@0.12.2': - resolution: {integrity: sha512-XYBXifPk5iNcPUTyV/yB4tlj5nI+fYoe/8CLHjyUG8GS0l8rCD+jKaAv3Jvz2T2erlkjEPqJXmzhUfBscOUo6g==} + '@rolldown/binding-win32-arm64-msvc@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-nlOnfYPbwf5OfIsDOUzVOHohEGEqd3kB3jzaGRue+yJzmxZ8wBh0GrE5qPSeSg4an3fPwHO+E+t2xVRpR7DpQw==} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-ia32-msvc@0.12.2': - resolution: {integrity: sha512-SV9LqvEc0d4gCLbkezH+UJ2uj2pTw3mwSKhFJEm6ir1lb05W6y9++m67NRs17fhudkFAz8iKlyPxKtZBKzAKOw==} + '@rolldown/binding-win32-ia32-msvc@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-+DMktd8DeKMZWFKEiDoLsDscJ8TXE7wYqIZn6nldFcXI8oD1A6gD4+RXPgeUHDfzDt818lhH8u6qTMKjdLOJwg==} cpu: [ia32] os: [win32] - '@rolldown/binding-win32-x64-msvc@0.12.2': - resolution: {integrity: sha512-XnRqHx182tyk1M12OMXqLajIj9DZrOUEKSPYrQUSaMCmHHAhULYP6ki240CV16PBWZW4Q1pwQ7YVKYFevRtvKg==} + '@rolldown/binding-win32-x64-msvc@0.12.2-snapshot-7ac1381-20240815002759': + resolution: {integrity: sha512-VCott6In1PcOmVPydhtrXpd5WAj5XqLy4vxi6A6utHj9Tojynq0JmvEVGT1r7mCC65F5BSmpS6nyeo9VjlLcbg==} cpu: [x64] os: [win32] @@ -6064,8 +6064,8 @@ packages: resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==} hasBin: true - rolldown@0.12.2: - resolution: {integrity: sha512-YJYKiYt2O9XytiQ3Na4Kk29avfIXhvK7udB3wAaVaF4kiSsFKE1167tElO/0eD6tjfJXCvwNxwsyYkBJRtsLmQ==} + rolldown@0.12.2-snapshot-7ac1381-20240815002759: + resolution: {integrity: sha512-vRFpC1OTbfbiXsEXFyAT35a8bNZDgfq5WE3RKj9ioXuihHALso6ZPvOGncW07yeXSm5gFj+K5SFCMIFR8xuU4Q==} hasBin: true rollup-plugin-dts@6.1.1: @@ -8358,42 +8358,42 @@ snapshots: '@polka/url@1.0.0-next.24': {} - '@rolldown/binding-darwin-arm64@0.12.2': + '@rolldown/binding-darwin-arm64@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-darwin-x64@0.12.2': + '@rolldown/binding-darwin-x64@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-freebsd-x64@0.12.2': + '@rolldown/binding-freebsd-x64@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-linux-arm-gnueabihf@0.12.2': + '@rolldown/binding-linux-arm-gnueabihf@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-linux-arm64-gnu@0.12.2': + '@rolldown/binding-linux-arm64-gnu@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-linux-arm64-musl@0.12.2': + '@rolldown/binding-linux-arm64-musl@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-linux-x64-gnu@0.12.2': + '@rolldown/binding-linux-x64-gnu@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-linux-x64-musl@0.12.2': + '@rolldown/binding-linux-x64-musl@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-wasm32-wasi@0.12.2': + '@rolldown/binding-wasm32-wasi@0.12.2-snapshot-7ac1381-20240815002759': dependencies: '@napi-rs/wasm-runtime': 0.2.4 optional: true - '@rolldown/binding-win32-arm64-msvc@0.12.2': + '@rolldown/binding-win32-arm64-msvc@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-win32-ia32-msvc@0.12.2': + '@rolldown/binding-win32-ia32-msvc@0.12.2-snapshot-7ac1381-20240815002759': optional: true - '@rolldown/binding-win32-x64-msvc@0.12.2': + '@rolldown/binding-win32-x64-msvc@0.12.2-snapshot-7ac1381-20240815002759': optional: true '@rollup/plugin-alias@5.1.0(rollup@3.29.4)': @@ -11841,22 +11841,22 @@ snapshots: dependencies: glob: 10.4.5 - rolldown@0.12.2: + rolldown@0.12.2-snapshot-7ac1381-20240815002759: dependencies: zod: 3.23.8 optionalDependencies: - '@rolldown/binding-darwin-arm64': 0.12.2 - '@rolldown/binding-darwin-x64': 0.12.2 - '@rolldown/binding-freebsd-x64': 0.12.2 - '@rolldown/binding-linux-arm-gnueabihf': 0.12.2 - '@rolldown/binding-linux-arm64-gnu': 0.12.2 - '@rolldown/binding-linux-arm64-musl': 0.12.2 - '@rolldown/binding-linux-x64-gnu': 0.12.2 - '@rolldown/binding-linux-x64-musl': 0.12.2 - '@rolldown/binding-wasm32-wasi': 0.12.2 - '@rolldown/binding-win32-arm64-msvc': 0.12.2 - '@rolldown/binding-win32-ia32-msvc': 0.12.2 - '@rolldown/binding-win32-x64-msvc': 0.12.2 + '@rolldown/binding-darwin-arm64': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-darwin-x64': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-freebsd-x64': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-linux-arm-gnueabihf': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-linux-arm64-gnu': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-linux-arm64-musl': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-linux-x64-gnu': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-linux-x64-musl': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-wasm32-wasi': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-win32-arm64-msvc': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-win32-ia32-msvc': 0.12.2-snapshot-7ac1381-20240815002759 + '@rolldown/binding-win32-x64-msvc': 0.12.2-snapshot-7ac1381-20240815002759 rollup-plugin-dts@6.1.1(rollup@3.29.4)(typescript@5.5.3): dependencies: From b5baf3b3eeefab55f03e5becdeb5ffded550f532 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Thu, 15 Aug 2024 22:20:46 +0800 Subject: [PATCH 3/4] fix: remove unused directive (#37) --- packages/vite/src/node/plugins/asset.ts | 1 - packages/vite/src/node/plugins/css.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/vite/src/node/plugins/asset.ts b/packages/vite/src/node/plugins/asset.ts index f2988a02f334f2..57ea0b5db08580 100644 --- a/packages/vite/src/node/plugins/asset.ts +++ b/packages/vite/src/node/plugins/asset.ts @@ -176,7 +176,6 @@ export function assetPlugin(config: ResolvedConfig): Plugin { if (rawRE.test(id)) { const file = checkPublicFile(id, config) || cleanUrl(id) if (config.command !== 'build') { - // @ts-expect-error this.addWatchFile(file) } // raw query, read file and return as string diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index cd1778ef3b1c1e..709c17967361fe 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -382,7 +382,6 @@ export function cssPlugin(config: ResolvedConfig): Plugin { if (deps && !isBuild) { for (const file of deps) { - // @ts-expect-error this.addWatchFile(file) } } From 3937c611c221691d36642c9fb380f25ae37187d5 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Thu, 15 Aug 2024 22:22:18 +0800 Subject: [PATCH 4/4] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20justfile=20fo?= =?UTF-8?q?r=20faster=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- justfile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 00000000000000..568db64a24d54e --- /dev/null +++ b/justfile @@ -0,0 +1,2 @@ +build-vite: + pnpm --filter vite run build-bundle