mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-24 09:33:44 +03:00
8907ff2ba0
* chore: update packages dependecy * fix: remove redundant options * fix: webpack config demo folder * fix: replace cypress ts-loader * chore: remove redundant dependency
31 lines
520 B
JavaScript
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);
|