mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2026-07-04 14:21:12 -06:00
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.
This commit is contained in:
@@ -48,7 +48,10 @@ export default {
|
|||||||
{
|
{
|
||||||
test: /\.(ts|tsx)$/,
|
test: /\.(ts|tsx)$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
use: 'ts-loader',
|
use: {
|
||||||
|
loader: 'ts-loader',
|
||||||
|
options: { transpileOnly: true },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
|
|||||||
Reference in New Issue
Block a user