Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit ebbfbc3

Browse files
committed
update node version and a variable name
1 parent b211694 commit ebbfbc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This version is only compatible with webpack 4.x+ and Babel 7.x+.
2828
* If you need webpack 2 or 3 support, use `@cypress/webpack-preprocessor` 1.x
2929
* If you need Babel 6 support, use `@cypress/webpack-preprocessor` <= 2.x
3030

31-
This plugin (and all Cypress plugins) run in Cypress's own version of Node. If you require npm packages or your own code into the pluginsFile, they needs to be compatible with [the version of Node that Cypress uses]((https://github.com/cypress-io/cypress/blob/develop/.node-version)).
31+
By default, this plugin (and all Cypress plugins) run in the Node version that is bundled with Cypress. Alternatively, you can use the Node found on your system by setting [nodeVersion: system](https://on.cypress.io/configuration#Node-version) configuration option. A common use case for using the system Node are native dependencies like `node-sass`.
3232

3333
## Usage
3434

@@ -144,7 +144,7 @@ If, for example, you want to update the options for the `babel-loader` to add th
144144
const webpackPreprocessor = require('@cypress/webpack-preprocessor')
145145

146146
module.exports = (on) => {
147-
const options = webpack.defaultOptions
147+
const options = webpackPreprocessor.defaultOptions
148148
options.webpackOptions.module.rules[0].use[0].options.presets.push('babel-preset-stage-3')
149149

150150
on('file:preprocessor', webpackPreprocessor(options))

0 commit comments

Comments
 (0)