Skip to content

Can we add little script to use babelrc #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bahmutov opened this issue May 20, 2019 · 1 comment · Fixed by #8
Closed

Can we add little script to use babelrc #7

bahmutov opened this issue May 20, 2019 · 1 comment · Fixed by #8
Labels

Comments

@bahmutov
Copy link
Contributor

Instead of manually setting

const browserify = require('@cypress/browserify-preprocessor')

module.exports = (on, config) => {
  on('task', require('cypress-istanbul/task'))

  // tell Cypress to use .babelrc when bundling spec code
  const options = browserify.defaultOptions
  options.browserifyOptions.transform[1][1].babelrc = true
  on('file:preprocessor', browserify(options))
}
@bahmutov
Copy link
Contributor Author

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant