const wp = require('@cypress/webpack-preprocessor'); const webpackOptions = { resolve: { extensions: ['.ts', '.js'], }, performance: false, module: { rules: [ { test: /\.ts$/, exclude: [/node_modules/], use: [ { loader: 'esbuild-loader', options: { tsconfigRaw: require('../tsconfig.json'), }, }, ], }, ], }, }; const options = { webpackOptions, }; module.exports = wp(options);