This repository was archived by the owner on Jan 31, 2023. It is now read-only.
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Cannot add plug-syntax-flow #58
Open
Description
Love cypress! Thanks in advance
I have the following configuration
// https://github.com/cypress-io/cypress-browserify-preprocessor#modifying-default-options
/**
* This to modify Cypress web pack
*/
const browserify = require('@cypress/browserify-preprocessor')
module.exports = (on) => {
const options = {
extensions: ['.js', '.jsx', '.coffee'],
transform: [
[
'coffeeify',
{}
],
[
'babelify',
{
ast: false,
babelrc: false,
plugins: [
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-flow'
],
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-flow'
]
},
]
],
debug: true,
plugin: [],
cache: {},
packageCache: {}
}
on('file:preprocessor', browserify(options))
}
in cypress/plugins/browsify.js
Metadata
Metadata
Assignees
Labels
No labels