From cecc47da11bd524df70e58207f617f61c2057f29 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 27 Aug 2023 19:34:14 +0530 Subject: [PATCH] fix(deps): bundle vite-plugin-vue - two vite versions being installed --- package.json | 5 ++-- pnpm-lock.yaml | 60 +++++++----------------------------------------- rollup.config.ts | 3 ++- 3 files changed, 13 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index 243f20f9..854a3914 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,6 @@ "dependencies": { "@docsearch/css": "^3.5.2", "@docsearch/js": "^3.5.2", - "@vitejs/plugin-vue": "^4.3.3", "@vue/devtools-api": "^6.5.0", "@vueuse/core": "^10.4.0", "@vueuse/integrations": "^10.4.0", @@ -133,6 +132,7 @@ "@types/node": "^20.5.6", "@types/postcss-prefix-selector": "^1.16.0", "@types/prompts": "^2.4.4", + "@vitejs/plugin-vue": "^4.3.3", "@vue/shared": "^3.3.4", "chokidar": "^3.5.3", "compression": "^1.7.4", @@ -193,7 +193,8 @@ }, "pnpm": { "overrides": { - "ora>string-width": "^5" + "ora>string-width": "^5", + "vite": "5.0.0-beta.0" } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8cb3399c..a9e9d523 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,6 +6,7 @@ settings: overrides: ora>string-width: ^5 + vite: 5.0.0-beta.0 importers: @@ -17,9 +18,6 @@ importers: '@docsearch/js': specifier: ^3.5.2 version: 3.5.2(@algolia/client-search@4.19.1)(search-insights@2.7.0) - '@vitejs/plugin-vue': - specifier: ^4.3.3 - version: 4.3.3(vite@5.0.0-beta.0)(vue@3.3.4) '@vue/devtools-api': specifier: ^6.5.0 version: 6.5.0 @@ -135,6 +133,9 @@ importers: '@types/prompts': specifier: ^2.4.4 version: 2.4.4 + '@vitejs/plugin-vue': + specifier: ^4.3.3 + version: 4.3.3(vite@5.0.0-beta.0)(vue@3.3.4) '@vue/shared': specifier: ^3.3.4 version: 3.3.4 @@ -1387,12 +1388,12 @@ packages: resolution: {integrity: sha512-ssxyhIAZqB0TrpUg6R0cBpCuMk9jTIlO1GNSKKQD6S8VjnXi6JXKfUXjSsxey9IwQiaRGsO1WnW9Rkl1L6AJVw==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: ^4.0.0 + vite: 5.0.0-beta.0 vue: ^3.2.25 dependencies: vite: 5.0.0-beta.0(@types/node@20.5.6) vue: 3.3.4 - dev: false + dev: true /@vitest/expect@0.34.3: resolution: {integrity: sha512-F8MTXZUYRBVsYL1uoIft1HHWhwDbSzwAU9Zgh8S6WFC3YgVb4AnFV2GXO3P5Em8FjEYaZtTnQYoNwwBrlOMXgg==} @@ -1477,14 +1478,12 @@ packages: magic-string: 0.30.3 postcss: 8.4.28 source-map-js: 1.0.2 - dev: false /@vue/compiler-ssr@3.3.4: resolution: {integrity: sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==} dependencies: '@vue/compiler-dom': 3.3.4 '@vue/shared': 3.3.4 - dev: false /@vue/devtools-api@6.5.0: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} @@ -1517,7 +1516,6 @@ packages: '@vue/shared': 3.3.4 estree-walker: 2.0.2 magic-string: 0.30.3 - dev: false /@vue/reactivity@3.3.4: resolution: {integrity: sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==} @@ -1529,7 +1527,6 @@ packages: dependencies: '@vue/reactivity': 3.3.4 '@vue/shared': 3.3.4 - dev: false /@vue/runtime-dom@3.3.4: resolution: {integrity: sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==} @@ -1537,7 +1534,6 @@ packages: '@vue/runtime-core': 3.3.4 '@vue/shared': 3.3.4 csstype: 3.1.2 - dev: false /@vue/server-renderer@3.3.4(vue@3.3.4): resolution: {integrity: sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==} @@ -1547,7 +1543,6 @@ packages: '@vue/compiler-ssr': 3.3.4 '@vue/shared': 3.3.4 vue: 3.3.4 - dev: false /@vue/shared@3.3.4: resolution: {integrity: sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ==} @@ -2194,7 +2189,6 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} - dev: false /dargs@7.0.0: resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==} @@ -4646,7 +4640,7 @@ packages: mlly: 1.4.1 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.5.6) + vite: 5.0.0-beta.0(@types/node@20.5.6) transitivePeerDependencies: - '@types/node' - less @@ -4658,42 +4652,6 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.5.6): - resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true - peerDependencies: - '@types/node': '>= 14' - 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 - dependencies: - '@types/node': 20.5.6 - esbuild: 0.18.20 - postcss: 8.4.28 - rollup: 3.28.1 - optionalDependencies: - fsevents: 2.3.3 - dev: true - /vite@5.0.0-beta.0(@types/node@20.5.6): resolution: {integrity: sha512-r1JPQ3TTO1icQZEU6KJJKv3Qlz8XXvymqlfH8XVws4JIUszbhBkbwnyWgV+h2+e2Iylsi8mVxCD5/977Hc0Fsw==} engines: {node: ^18.0.0 || >=20.0.0} @@ -4728,7 +4686,6 @@ packages: rollup: 3.28.1 optionalDependencies: fsevents: 2.3.3 - dev: false /vitest@0.34.3(supports-color@9.4.0): resolution: {integrity: sha512-7+VA5Iw4S3USYk+qwPxHl8plCMhA5rtfwMjgoQXMT7rO5ldWcdsdo3U1QD289JgglGK4WeOzgoLTsGFu6VISyQ==} @@ -4782,7 +4739,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.0 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.5.6) + vite: 5.0.0-beta.0(@types/node@20.5.6) vite-node: 0.34.3(@types/node@20.5.6)(supports-color@9.4.0) why-is-node-running: 2.2.2 transitivePeerDependencies: @@ -4843,7 +4800,6 @@ packages: '@vue/runtime-dom': 3.3.4 '@vue/server-renderer': 3.3.4(vue@3.3.4) '@vue/shared': 3.3.4 - dev: false /wait-on@7.0.1(debug@4.3.4): resolution: {integrity: sha512-9AnJE9qTjRQOlTZIldAaf/da2eW0eSRSgcqq85mXQja/DW3MriHxkpODDSUEg+Gri/rKEcXUZHe+cevvYItaog==} diff --git a/rollup.config.ts b/rollup.config.ts index 44622ff9..ab215e82 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -26,7 +26,8 @@ const external = [ m.includes('punycode') ? [] : [m, `node:${m}`] ), r('types/shared.d.ts'), - 'postcss' + 'postcss', + 'source-map-js' ] const plugins = [