Skip to content

Commit 9ae517d

Browse files
committed
run linter
1 parent 73c330f commit 9ae517d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/app/references/migration-guide.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ Note that this package version is deprecated and no longer supported by Cypress
8888

8989
### `@cypress/webpack-batteries-included-preprocessor` no longer shims all built-ins provided by `webpack` v4
9090

91-
The default file preprocessor, `@cypress/webpack-batteries-included-preprocessor`, no longer shims all built-ins that were previously provided by webpack v4. This is mainly to reduce security vulnerabilities and bundle size within the end-to-end file preprocessor.
91+
The default file preprocessor, `@cypress/webpack-batteries-included-preprocessor`, no longer shims all built-ins that were previously provided by webpack v4. This is mainly to reduce security vulnerabilities and bundle size within the end-to-end file preprocessor.
9292

93-
However, `@cypress/webpack-batteries-included-preprocessor` still ships with *some* built-ins, such as `buffer`, `path`, `process`, `os`, and `stream`. If other built-ins are required, install `@cypress/webpack-batteries-included-preprocessor` independently and follow the webpack documentation described in [webpack's resolve.fallback](https://webpack.js.org/configuration/resolve/#resolvefallback) to configure the built-ins you need.
93+
However, `@cypress/webpack-batteries-included-preprocessor` still ships with _some_ built-ins, such as `buffer`, `path`, `process`, `os`, and `stream`. If other built-ins are required, install `@cypress/webpack-batteries-included-preprocessor` independently and follow the webpack documentation described in [webpack's resolve.fallback](https://webpack.js.org/configuration/resolve/#resolvefallback) to configure the built-ins you need.
9494

9595
For example, the following code shows how to provide the `querystring` built-in to the preprocessor:
9696

9797
```javascript
9898
const webpackPreprocessor = require('@cypress/webpack-batteries-included-preprocessor')
9999

100-
function getWebpackOptions () {
100+
function getWebpackOptions() {
101101
const options = webpackPreprocessor.getFullWebpackOptions()
102102

103103
// add built-ins as needed
@@ -107,9 +107,12 @@ function getWebpackOptions () {
107107
}
108108

109109
module.exports = (on) => {
110-
on('file:preprocessor', webpackPreprocessor({
111-
webpackOptions: getWebpackOptions()
112-
}))
110+
on(
111+
'file:preprocessor',
112+
webpackPreprocessor({
113+
webpackOptions: getWebpackOptions(),
114+
})
115+
)
113116
}
114117
```
115118

0 commit comments

Comments
 (0)