Omit browserify-preprocessor from dependencies#1
Omit browserify-preprocessor from dependencies#1peterbee wants to merge 1 commit intoviesti:masterfrom
Conversation
|
Sorry, have been a bit lazy with this :/ Seems that since last summer when hacking on this, Cypress was on version 4.x, now it's on version 6.x (!). Also seems that version 5.0.0 switched to using Webpack preprocessor by default: https://docs.cypress.io/guides/references/changelog.html#5-0-0
So it makes even more sense to remove the dependency to browserify preprocessor I guess :) If I remember correctly, the problem was that if one does not delegate to the default preprocessor, the file is not preprocessed at all, which is a problem for even the sample code of a fresh cypress install, since the samples use code that requires preprocessing. So if a custom preprocessor doesn't handle a file, the fallback has to be explicitly written. The What is a bit funny that I now don't remember how one could fallback to use the default preprocessor bundled inside Cypress installation. Might be good to look if there is an instruction for that (maybe I missed) or if not, hop onto the Cypress 6.x time and even use the webpack preprocessor (https://github.com/cypress-io/cypress/tree/master/npm/webpack-preprocessor), since this is what new projects would probably use. |
|
Hmm, haven't looked how other preprocessors work that much, but this made me wonder that is the conditional check even necessary, assuming that each preprocessor checks if a file should be processed: cypress-io/cypress#5832 (comment) |
This reverts a previous change to add
@cypress/browserify-preprocessorto this package's dependencies. It also clarifies usage in the README for Clojurescript-only and CLJS + JS environments.