@@ -40,7 +40,6 @@ def _cypress_plugin_impl(ctx):
40
40
output = ctx .outputs .plugin ,
41
41
template = ctx .file ._plugin_template ,
42
42
substitutions = {
43
- "TEMPLATED_@cypress/browserify-preprocessor" : "${cwd}/../cypress_deps/node_modules/@cypress/browserify-preprocessor/index" ,
44
43
"TEMPLATED_integrationFileShortPaths" : "[\n {files}\n ]" .format (files = ",\n " .join (integration_files_short_paths )),
45
44
"TEMPLATED_pluginsFile" : plugins_file .short_path ,
46
45
},
@@ -78,9 +77,7 @@ def cypress_web_test(
78
77
name ,
79
78
config_file ,
80
79
srcs = [],
81
- plugins_file = Label ("@build_bazel_rules_nodejs//packages/cypress:internal/plugins/base.js" ),
82
- cypress = Label ("TEMPLATED_node_modules_workspace_name//cypress:cypress" ),
83
- cypress_browserify_preprocessor = Label ("TEMPLATED_node_modules_workspace_name//@cypress/browserify-preprocessor" ),
80
+ plugins_file = Label ("//plugins/base.js" ),
84
81
data = [],
85
82
templated_args = [],
86
83
cypress_cache = Label ("//:cypress_cache" ),
@@ -104,8 +101,6 @@ def cypress_web_test(
104
101
tags = tags ,
105
102
data = data + [
106
103
plugins_file ,
107
- cypress ,
108
- cypress_browserify_preprocessor ,
109
104
cypress_cache ,
110
105
cypress_executable ,
111
106
"{cypress_plugin}" .format (cypress_plugin = cypress_plugin ),
@@ -127,7 +122,6 @@ def cypress_web_test_global_cache(
127
122
srcs = [],
128
123
plugins_file = Label ("@build_bazel_rules_nodejs//packages/cypress:plugins/base.js" ),
129
124
cypress = Label ("TEMPLATED_node_modules_workspace_name//cypress:cypress" ),
130
- cypress_browserify_preprocessor = Label ("TEMPLATED_node_modules_workspace_name//@cypress/browserify-preprocessor" ),
131
125
data = [],
132
126
templated_args = [],
133
127
** kwargs ):
@@ -150,7 +144,6 @@ def cypress_web_test_global_cache(
150
144
data = data + [
151
145
plugins_file ,
152
146
cypress ,
153
- cypress_browserify_preprocessor ,
154
147
"{cypress_plugin}" .format (cypress_plugin = cypress_plugin ),
155
148
"{config_file}" .format (config_file = config_file ),
156
149
] + srcs ,
0 commit comments