You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Object of options passed to [browserify](https://github.com/browserify/browserify#browserifyfiles--opts).
42
+
43
+
If you pass one of these top-level options in, it will override the default. So if pass `extensions: ['.cljs']`, the default extensions (`js, jsx, coffee, cjsx`) will no longer be supported. If you wish to add to the supported extensions, read up on [modifying the default options](#modifying-default-options).
44
+
45
+
As long as the config passed from Cypress indicates that the plugin should watch files, [watchify](https://github.com/browserify/watchify) is automatically configured as a plugin, so there's no need to manually specify it.
Object of options passed to [watchify](https://github.com/browserify/watchify#options)
52
76
@@ -65,30 +89,6 @@ Object of options passed to [watchify](https://github.com/browserify/watchify#op
65
89
}
66
90
```
67
91
68
-
### transforms
69
-
70
-
Array of transforms. Each item is an object with a `transform` set to the path to a transform package or the required module itself and `options` set to the options for that transform.
A function that is called with the [browserify bundle](https://github.com/browserify/browserify#browserifyfiles--opts). This allows you to specify external files and plugins. See the [browserify docs](https://github.com/browserify/browserify#baddfile-opts) for methods available.
@@ -108,19 +108,33 @@ browserify({
108
108
109
109
The default options are provided as `browserify.defaultOptions` so they can be more easily modified.
110
110
111
-
If, for example, you want to update the options for the `babelify` transform to turn on `babelrc`, you could do the following:
111
+
If, for example, you want to update the options for the `babelify` transform to turn on `babelrc` loading, you could do the following:
thrownewError(`Cypress Browserify Preprocessor must be called with the Cypress config as its first argument. You passed: ${JSON.stringify(config,null,2)}`)
0 commit comments