Skip to content

Commit bd32daa

Browse files
committed
fix: add webpack-preprocessor, fixes babel 7 compatibility issues
closes #2538 closes #2465
1 parent 5f18189 commit bd32daa

File tree

3 files changed

+2067
-1387
lines changed

3 files changed

+2067
-1387
lines changed

packages/@vue/cli-plugin-e2e-cypress/generator/template/tests/e2e/plugins/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// https://docs.cypress.io/guides/guides/plugins-guide.html
2+
const webpack = require('@cypress/webpack-preprocessor')
23

34
module.exports = (on, config) => {
5+
on('file:preprocessor', webpack({
6+
webpackOptions: require('@vue/cli-service/webpack.config'),
7+
watchOptions: {},
8+
}))
9+
410
return Object.assign({}, config, {
511
fixturesFolder: 'tests/e2e/fixtures',
612
integrationFolder: 'tests/e2e/specs',

packages/@vue/cli-plugin-e2e-cypress/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"access": "public"
2323
},
2424
"dependencies": {
25+
"@cypress/webpack-preprocessor": "^3.0.0",
2526
"@vue/cli-shared-utils": "^3.0.2",
2627
"cypress": "^3.0.2",
2728
"eslint-plugin-cypress": "^2.0.1"

0 commit comments

Comments
 (0)