diff --git a/parser_test.go b/parser_test.go index c532459..05ffb4e 100644 --- a/parser_test.go +++ b/parser_test.go @@ -32,7 +32,7 @@ func TestDevServer(t *testing.T) { t.Fatalf("tags did not render: %s", err) } // t.Logf("tags: %s", string(tags)) - shouldContain = "http://localhost:5137/main.ts" + shouldContain = "http://localhost:5173/main.ts" if !strings.Contains(string(tags), shouldContain) { t.Fatalf("tags did not contain '%s'", shouldContain) } diff --git a/utils_test.go b/utils_test.go index 3e30a56..f344db7 100644 --- a/utils_test.go +++ b/utils_test.go @@ -18,16 +18,16 @@ func TestDefaultParams(t *testing.T) { typescript bool entryPt string }{ - {"package-preact-ts.json", "preact", "3", "5137", true, "src/main.tsx"}, - {"package-react-ts.json", "react", "3", "5137", true, "src/main.tsx"}, - {"package-react.json", "react", "3", "5137", false, "src/main.jsx"}, - {"package-svelte-ts.json", "svelte", "3", "5137", true, "src/main.ts"}, - {"package-svelte.json", "svelte", "3", "5137", false, "src/main.js"}, - {"package-vanilla-ts.json", "vanilla", "3", "5137", true, "src/main.ts"}, - {"package-vanilla.json", "vanilla", "3", "5137", false, "main.js"}, - {"package-vue-ts.json", "vue", "3", "5137", true, "src/main.ts"}, + {"package-preact-ts.json", "preact", "3", "5173", true, "src/main.tsx"}, + {"package-react-ts.json", "react", "3", "5173", true, "src/main.tsx"}, + {"package-react.json", "react", "3", "5173", false, "src/main.jsx"}, + {"package-svelte-ts.json", "svelte", "3", "5173", true, "src/main.ts"}, + {"package-svelte.json", "svelte", "3", "5173", false, "src/main.js"}, + {"package-vanilla-ts.json", "vanilla", "3", "5173", true, "src/main.ts"}, + {"package-vanilla.json", "vanilla", "3", "5173", false, "main.js"}, + {"package-vue-ts.json", "vue", "3", "5173", true, "src/main.ts"}, {"package-vue-v2.json", "vue", "2", "3000", false, "src/main.js"}, - {"package-vue3.json", "vue", "3", "5137", false, "src/main.js"}, + {"package-vue3.json", "vue", "3", "5173", false, "src/main.js"}, } for _, test := range tstList { diff --git a/vueglue.go b/vueglue.go index fea9610..32430ad 100644 --- a/vueglue.go +++ b/vueglue.go @@ -10,7 +10,7 @@ import ( const ( DEFAULT_VITE_VERSION = "3" DEFAULT_PORT_V2 = "3000" - DEFAULT_PORT_V3 = "5137" + DEFAULT_PORT_V3 = "5173" ) // type ViteConfig passes info needed to generate the library's