mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 12:03:44 +03:00
30 lines
504 B
JavaScript
30 lines
504 B
JavaScript
const wp = require('@cypress/webpack-preprocessor');
|
|
|
|
const webpackOptions = {
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
exclude: [/node_modules/],
|
|
use: [
|
|
{
|
|
loader: 'awesome-typescript-loader',
|
|
options: {
|
|
configFileName: 'e2e/tsconfig.json',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
const options = {
|
|
webpackOptions,
|
|
};
|
|
|
|
module.exports = wp(options);
|