From b4eb4dbaeaca423364c35b17b902098e39694a54 Mon Sep 17 00:00:00 2001 From: James Daniels Date: Fri, 8 Dec 2023 13:57:49 -0700 Subject: [PATCH 1/3] Fix for the default import of strip-ansi --- src/frameworks/vite/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frameworks/vite/index.ts b/src/frameworks/vite/index.ts index eb1ad44e909..f868db99b39 100644 --- a/src/frameworks/vite/index.ts +++ b/src/frameworks/vite/index.ts @@ -3,7 +3,7 @@ import { spawn } from "cross-spawn"; import { existsSync } from "fs"; import { copy, pathExists } from "fs-extra"; import { join } from "path"; -import stripAnsi from "strip-ansi"; +const stripAnsi = require("strip-ansi"); import { FrameworkType, SupportLevel } from "../interfaces"; import { promptOnce } from "../../prompt"; import { From 8636ca2240b0dd3f313e9fe72704864ce962c41c Mon Sep 17 00:00:00 2001 From: James Daniels Date: Fri, 8 Dec 2023 14:02:53 -0700 Subject: [PATCH 2/3] Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a07e3051e65..01ee38d817c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,2 @@ - Fix Next.js dynamic and static OG images. (#6592) +- Address a regression introduced in 3.0.1 when emulating Vite applications. (#6599) From aab37933af5d9d364aba3383282b802a002424e5 Mon Sep 17 00:00:00 2001 From: James Daniels Date: Fri, 8 Dec 2023 14:06:32 -0700 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01ee38d817c..e29d71880f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ - Fix Next.js dynamic and static OG images. (#6592) -- Address a regression introduced in 3.0.1 when emulating Vite applications. (#6599) +- Address a regression introduced in 13.0.1 when emulating Vite applications. (#6599)