From d9a0ca185d1b20d7c304f8b258e2e982f5255601 Mon Sep 17 00:00:00 2001 From: Mattias Ekstrand Date: Thu, 20 Jan 2022 14:19:32 +0100 Subject: [PATCH] Normalized file path (#14185) --- .../src/get-runtime-path/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts b/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts index 28f6d7a82197..37fdc83a6827 100644 --- a/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts +++ b/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts @@ -34,5 +34,5 @@ function resolveAbsoluteRuntime(moduleName: string, dirname: string) { } export function resolveFSPath(path) { - return require.resolve(path); + return require.resolve(path).replace(/\\/g, "/"); }