Skip to content

Commit

Permalink
Port is 5173, per docs!!
Browse files Browse the repository at this point in the history
  • Loading branch information
torenware committed Jul 23, 2022
1 parent 49d1709 commit ac36f8a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
18 changes: 9 additions & 9 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion vueglue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac36f8a

Please sign in to comment.