You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
449 B
15 lines
449 B
const { cypressEsbuildPreprocessor } = require('cypress-esbuild-preprocessor');
|
|
const path = require('path');
|
|
|
|
module.exports = (on, config) => {
|
|
on(
|
|
'file:preprocessor',
|
|
cypressEsbuildPreprocessor({
|
|
esbuildOptions: {
|
|
// optional tsconfig for typescript support and path mapping (see https://github.com/evanw/esbuild for all options)
|
|
tsconfig: path.resolve(__dirname, '../../tsconfig.json'),
|
|
},
|
|
}),
|
|
);
|
|
};
|