Skip to content

Commit 78e65a2

Browse files
committed
chore: fallback to the original code after babel transform
1 parent 11913e6 commit 78e65a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playwright/src/transform/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export function transformHook(originalCode: string, filename: string, moduleUrl?
234234
transformData = new Map<string, any>();
235235
const { code, map } = babelTransform(originalCode, filename, !!moduleUrl, pluginsPrologue, pluginsEpilogue);
236236
if (!code)
237-
return { code: '', serializedCache };
237+
return { code: originalCode, serializedCache };
238238
const added = addToCache!(code, map, transformData);
239239
return { code, serializedCache: added.serializedCache };
240240
}

0 commit comments

Comments
 (0)