mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-12 02:00:06 -06:00
* wip react to rollup * remove comment * chore: update build script * we were tree shaking the support file hooks * updating the scripts for reacts package.json * Revert "updating the scripts for reacts package.json" This reverts commit7ca3ac8e61. * adding watch task without modifying circleci * bundle types correctly * bundle types correctly 2 * fixing support to immediately invoke the new method on hooks * run the hooks only in support * Revert "run the hooks only in support" This reverts commit939e4c5942. * fix: remove hooks from support entirely Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: ElevateBart <ledouxb@gmail.com> Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
30 lines
756 B
JavaScript
30 lines
756 B
JavaScript
module.exports = {
|
|
presets: [
|
|
'@babel/preset-env',
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
// allow lazy loaded components with dynamic "import(...)"
|
|
// https://babeljs.io/docs/en/babel-plugin-syntax-dynamic-import/
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-proposal-class-properties',
|
|
// https://babeljs.io/docs/en/babel-plugin-transform-modules-commonjs
|
|
// loose ES6 modules allow us to dynamically mock imports during tests
|
|
[
|
|
'@babel/plugin-transform-modules-commonjs',
|
|
{
|
|
loose: true,
|
|
},
|
|
],
|
|
[
|
|
'module-resolver',
|
|
{
|
|
alias: {
|
|
'@cypress/react': './dist/cypress-react.cjs.js',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
}
|