From 43e2ac99e8fe7e8adbf4f9b0ff1c090045baeb7c Mon Sep 17 00:00:00 2001 From: zhangmo8 Date: Thu, 22 Aug 2024 15:00:47 +0800 Subject: [PATCH] feat: webpack example --- pnpm-lock.yaml | 135 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 119 insertions(+), 16 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58a5b4561..512e587ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -142,8 +142,8 @@ importers: specifier: ^5.4.2 version: 5.4.2(@types/node@20.16.1)(terser@5.31.6) vite-plugin-vue-devtools: - specifier: ^7.3.9 - version: 7.3.9(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) + specifier: ^7.3.8 + version: 7.3.8(@nuxt/kit@3.12.4(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) vitepress: specifier: 1.3.4 version: 1.3.4(@algolia/client-search@5.0.0)(@types/node@20.16.1)(postcss@8.4.41)(search-insights@2.16.3)(terser@5.31.6)(typescript@5.5.4) @@ -176,7 +176,32 @@ importers: devDependencies: nuxt: specifier: ^3.12.4 - version: 3.12.4(@parcel/watcher@2.4.1)(@types/node@22.4.0)(encoding@0.1.13)(ioredis@5.4.1)(magicast@0.3.4)(rollup@4.21.0)(terser@5.31.6)(typescript@5.5.4)(vite@5.4.2(@types/node@22.4.0)(terser@5.31.6))(vue-tsc@2.0.29(typescript@5.5.4)) + version: 3.12.4(@parcel/watcher@2.4.1)(@types/node@22.4.0)(encoding@0.1.13)(ioredis@5.4.1)(magicast@0.3.4)(rollup@4.21.0)(terser@5.31.6)(typescript@5.5.4)(vite@5.4.1(@types/node@22.4.0)(terser@5.31.6))(vue-tsc@2.0.29(typescript@5.5.4)) + unplugin-vue-router: + specifier: workspace:* + version: link:../.. + + examples/webpack: + dependencies: + vue: + specifier: ^3.3.4 + version: 3.4.38(typescript@5.5.4) + vue-loader: + specifier: ^17.4.2 + version: 17.4.2(@vue/compiler-sfc@3.4.38)(vue@3.4.38(typescript@5.5.4))(webpack@5.93.0(esbuild@0.23.0)) + vue-router: + specifier: ^4.2.2 + version: 4.4.3(vue@3.4.38(typescript@5.5.4)) + devDependencies: + '@vue/cli-plugin-router': + specifier: ^5.0.8 + version: 5.0.8(@vue/cli-service@5.0.8(@vue/compiler-sfc@3.4.38)(encoding@0.1.13)(esbuild@0.23.0)(handlebars@4.7.8)(lodash@4.17.21)(prettier@3.3.3)(vue-template-compiler@2.7.16)(vue@3.4.38(typescript@5.5.4))(webpack-sources@3.2.3))(encoding@0.1.13) + '@vue/cli-plugin-typescript': + specifier: ^5.0.8 + version: 5.0.8(@vue/cli-service@5.0.8(@vue/compiler-sfc@3.4.38)(encoding@0.1.13)(esbuild@0.23.0)(handlebars@4.7.8)(lodash@4.17.21)(prettier@3.3.3)(vue-template-compiler@2.7.16)(vue@3.4.38(typescript@5.5.4))(webpack-sources@3.2.3))(encoding@0.1.13)(esbuild@0.23.0)(typescript@5.5.4)(vue-template-compiler@2.7.16)(vue@3.4.38(typescript@5.5.4)) + typescript: + specifier: ^5.5.4 + version: 5.5.4 unplugin-vue-router: specifier: workspace:* version: link:../.. @@ -1614,9 +1639,27 @@ packages: resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} engines: {node: '>=10.13.0'} + '@types/body-parser@1.19.5': + resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} + + '@types/bonjour@3.5.13': + resolution: {integrity: sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ==} + + '@types/connect-history-api-fallback@1.5.4': + resolution: {integrity: sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==} + + '@types/connect@3.4.38': + resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} + '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} + '@types/eslint-scope@3.7.7': + resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} + + '@types/eslint@8.56.10': + resolution: {integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==} + '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -3335,6 +3378,13 @@ packages: encoding@0.1.13: resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} + end-of-stream@1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + + enhanced-resolve@5.17.0: + resolution: {integrity: sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==} + engines: {node: '>=10.13.0'} + enhanced-resolve@5.17.1: resolution: {integrity: sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==} engines: {node: '>=10.13.0'} @@ -3358,6 +3408,12 @@ packages: resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} engines: {node: '>=18'} + error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + + error-stack-parser-es@0.1.4: + resolution: {integrity: sha512-l0uy0kAoo6toCgVOYaAayqtPa2a1L15efxUMEnQebKwLQX2X0OpS6wMMQdc4juJXmxd9i40DuaUHq+mjIya9TQ==} + error-stack-parser-es@0.1.5: resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} @@ -8542,6 +8598,24 @@ snapshots: '@trysound/sax@0.2.0': {} + '@types/body-parser@1.19.5': + dependencies: + '@types/connect': 3.4.38 + '@types/node': 20.16.1 + + '@types/bonjour@3.5.13': + dependencies: + '@types/node': 20.16.1 + + '@types/connect-history-api-fallback@1.5.4': + dependencies: + '@types/express-serve-static-core': 4.19.5 + '@types/node': 20.16.1 + + '@types/connect@3.4.38': + dependencies: + '@types/node': 20.16.1 + '@types/debug@4.1.12': dependencies: '@types/connect': 3.4.38 @@ -8559,6 +8633,20 @@ snapshots: '@types/estree@1.0.5': {} + '@types/express-serve-static-core@4.19.5': + dependencies: + '@types/node': 20.16.1 + '@types/qs': 6.9.15 + '@types/range-parser': 1.2.7 + '@types/send': 0.17.4 + + '@types/express@4.17.21': + dependencies: + '@types/body-parser': 1.19.5 + '@types/express-serve-static-core': 4.19.5 + '@types/qs': 6.9.15 + '@types/serve-static': 1.15.7 + '@types/hast@3.0.4': dependencies: '@types/unist': 3.0.2 @@ -10541,6 +10629,15 @@ snapshots: iconv-lite: 0.6.3 optional: true + end-of-stream@1.4.4: + dependencies: + once: 1.4.0 + + enhanced-resolve@5.17.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + enhanced-resolve@5.17.1: dependencies: graceful-fs: 4.2.11 @@ -10559,6 +10656,12 @@ snapshots: environment@1.1.0: {} + error-ex@1.3.2: + dependencies: + is-arrayish: 0.2.1 + + error-stack-parser-es@0.1.4: {} + error-stack-parser-es@0.1.5: {} error-stack-parser@2.1.4: @@ -12463,7 +12566,7 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - ? nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@22.4.0)(encoding@0.1.13)(ioredis@5.4.1)(magicast@0.3.4)(rollup@4.21.0)(terser@5.31.6)(typescript@5.5.4)(vite@5.4.1(@types/node@22.4.0)(terser@5.31.6))(vue-tsc@2.0.29(typescript@5.5.4)) + ? nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@22.4.0)(encoding@0.1.13)(ioredis@5.4.1)(magicast@0.3.4)(rollup@4.21.0)(terser@5.31.6)(typescript@5.5.4)(vite@5.4.2(@types/node@22.4.0)(terser@5.31.6))(vue-tsc@2.0.29(typescript@5.5.4)) : dependencies: '@nuxt/devalue': 2.0.2 '@nuxt/devtools': 1.3.9(rollup@4.21.0)(vite@5.4.2(@types/node@22.4.0)(terser@5.31.6)) @@ -14339,7 +14442,7 @@ snapshots: typescript: 5.5.4 vue-tsc: 2.0.29(typescript@5.5.4) - ? vite-plugin-inspect@0.8.5(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6)) + ? vite-plugin-inspect@0.8.7(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6)) : dependencies: '@antfu/utils': 0.7.10 '@rollup/pluginutils': 5.1.0(rollup@4.21.0) @@ -14350,14 +14453,14 @@ snapshots: perfect-debounce: 1.0.0 picocolors: 1.0.1 sirv: 2.0.4 - vite: 5.4.2(@types/node@20.16.1)(terser@5.31.6) + vite: 5.4.1(@types/node@22.4.0)(terser@5.31.6) optionalDependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.21.0) transitivePeerDependencies: - rollup - supports-color - ? vite-plugin-inspect@0.8.5(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.1(@types/node@22.4.0)(terser@5.31.6)) + ? vite-plugin-inspect@0.8.7(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.2(@types/node@22.4.0)(terser@5.31.6)) : dependencies: '@antfu/utils': 0.7.10 '@rollup/pluginutils': 5.1.0(rollup@4.21.0) @@ -14368,23 +14471,23 @@ snapshots: perfect-debounce: 1.0.0 picocolors: 1.0.1 sirv: 2.0.4 - vite: 5.4.2(@types/node@22.4.0)(terser@5.31.6) + vite: 5.4.1(@types/node@20.16.1)(terser@5.31.6) optionalDependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.21.0) transitivePeerDependencies: - rollup - supports-color - ? vite-plugin-vue-devtools@7.3.8(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) + ? vite-plugin-vue-devtools@7.3.9(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) : dependencies: - '@vue/devtools-core': 7.3.8(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) - '@vue/devtools-kit': 7.3.8 - '@vue/devtools-shared': 7.3.8 + '@vue/devtools-core': 7.3.9(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4)) + '@vue/devtools-kit': 7.3.9 + '@vue/devtools-shared': 7.3.9 execa: 8.0.1 sirv: 2.0.4 - vite: 5.4.2(@types/node@20.16.1)(terser@5.31.6) - vite-plugin-inspect: 0.8.7(@nuxt/kit@3.12.4(magicast@0.3.4)(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6)) - vite-plugin-vue-inspector: 5.1.3(vite@5.4.2(@types/node@20.16.1)(terser@5.31.6)) + vite: 5.4.1(@types/node@20.16.1)(terser@5.31.6) + vite-plugin-inspect: 0.8.5(@nuxt/kit@3.12.4(rollup@4.21.0))(rollup@4.21.0)(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6)) + vite-plugin-vue-inspector: 5.1.3(vite@5.4.1(@types/node@20.16.1)(terser@5.31.6)) transitivePeerDependencies: - '@nuxt/kit' - rollup @@ -14441,7 +14544,7 @@ snapshots: fsevents: 2.3.3 terser: 5.31.6 - ? vitepress@1.3.3(@algolia/client-search@5.0.0)(@types/node@20.16.1)(postcss@8.4.41)(search-insights@2.16.3)(terser@5.31.6)(typescript@5.5.4) + ? vitepress@1.3.4(@algolia/client-search@5.0.0)(@types/node@20.16.1)(postcss@8.4.41)(search-insights@2.16.3)(terser@5.31.6)(typescript@5.5.4) : dependencies: '@docsearch/css': 3.6.1 '@docsearch/js': 3.6.1(@algolia/client-search@5.0.0)(search-insights@2.16.3)