redoc/e2e/plugins/cy-ts-preprocessor.js

31 lines
520 B
JavaScript
Raw Permalink Normal View History

const wp = require('@cypress/webpack-preprocessor');
const webpackOptions = {
resolve: {
extensions: ['.ts', '.js'],
},
2018-03-17 18:58:28 +03:00
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);