From: ZHAO Jinxiang Date: Tue, 28 Dec 2021 09:27:18 +0000 (+0800) Subject: fix: more accurate types for URL and vue-router (#23) X-Git-Tag: v3.0.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195a35e9a4455475ac281065330438bb2c694723;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: more accurate types for URL and vue-router (#23) --- diff --git a/playground/default/vite.config.js b/playground/default/vite.config.js index 5cd06c63..116273fb 100644 --- a/playground/default/vite.config.js +++ b/playground/default/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-pinia-with-tests/vite.config.js b/playground/jsx-pinia-with-tests/vite.config.js index f140f276..db4edfd9 100644 --- a/playground/jsx-pinia-with-tests/vite.config.js +++ b/playground/jsx-pinia-with-tests/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-pinia/vite.config.js b/playground/jsx-pinia/vite.config.js index f140f276..db4edfd9 100644 --- a/playground/jsx-pinia/vite.config.js +++ b/playground/jsx-pinia/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-router-pinia-with-tests/src/App.vue b/playground/jsx-router-pinia-with-tests/src/App.vue index 37edbaf4..460e5b29 100644 --- a/playground/jsx-router-pinia-with-tests/src/App.vue +++ b/playground/jsx-router-pinia-with-tests/src/App.vue @@ -1,4 +1,5 @@ @@ -10,13 +11,13 @@ import HelloWorld from '@/components/HelloWorld.vue' - +