From d5891e8e09a970bef16421669a2bcf5af19f8ae6 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sun, 21 Jun 2026 05:53:59 +0000 Subject: [PATCH] PR-733704: use transpileOnly in webpack.cy.config.ts ts-loader Cypress only needs transpilation, not full type-checking. This removes TS2307 (@storybook/react-webpack5 types) and TS2339 (toBeInTheDocument) errors from the Cypress webpack build output. --- webpack.cy.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.cy.config.ts b/webpack.cy.config.ts index 1b5d621..a3b0dbc 100644 --- a/webpack.cy.config.ts +++ b/webpack.cy.config.ts @@ -48,7 +48,10 @@ export default { { test: /\.(ts|tsx)$/, exclude: /node_modules/, - use: 'ts-loader', + use: { + loader: 'ts-loader', + options: { transpileOnly: true }, + }, }, { test: /\.(js|jsx)$/,