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

31 lines
506 B
JavaScript
Raw 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: [
{
2018-03-17 16:11:52 +03:00
loader: 'ts-loader',
options: {
2018-03-17 16:11:52 +03:00
configFile: 'e2e/tsconfig.json',
},
},
],
},
],
},
};
const options = {
webpackOptions,
};
module.exports = wp(options);