redoc/e2e/plugins/cy-ts-preprocessor.js
Oprysk Viacheslav 8907ff2ba0
chore: update packages dependecy (#2360)
* chore: update packages dependecy

* fix: remove redundant options

* fix: webpack config demo folder

* fix: replace cypress ts-loader

* chore: remove redundant dependency
2023-07-19 10:54:04 +03:00

31 lines
520 B
JavaScript

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);