@@ -40,7 +40,6 @@ def _cypress_plugin_impl(ctx):
4040 output = ctx .outputs .plugin ,
4141 template = ctx .file ._plugin_template ,
4242 substitutions = {
43- "TEMPLATED_@cypress/browserify-preprocessor" : "${cwd}/../cypress_deps/node_modules/@cypress/browserify-preprocessor/index" ,
4443 "TEMPLATED_integrationFileShortPaths" : "[\n {files}\n ]" .format (files = ",\n " .join (integration_files_short_paths )),
4544 "TEMPLATED_pluginsFile" : plugins_file .short_path ,
4645 },
@@ -78,9 +77,7 @@ def cypress_web_test(
7877 name ,
7978 config_file ,
8079 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" ),
8481 data = [],
8582 templated_args = [],
8683 cypress_cache = Label ("//:cypress_cache" ),
@@ -104,8 +101,6 @@ def cypress_web_test(
104101 tags = tags ,
105102 data = data + [
106103 plugins_file ,
107- cypress ,
108- cypress_browserify_preprocessor ,
109104 cypress_cache ,
110105 cypress_executable ,
111106 "{cypress_plugin}" .format (cypress_plugin = cypress_plugin ),
@@ -127,7 +122,6 @@ def cypress_web_test_global_cache(
127122 srcs = [],
128123 plugins_file = Label ("@build_bazel_rules_nodejs//packages/cypress:plugins/base.js" ),
129124 cypress = Label ("TEMPLATED_node_modules_workspace_name//cypress:cypress" ),
130- cypress_browserify_preprocessor = Label ("TEMPLATED_node_modules_workspace_name//@cypress/browserify-preprocessor" ),
131125 data = [],
132126 templated_args = [],
133127 ** kwargs ):
@@ -150,7 +144,6 @@ def cypress_web_test_global_cache(
150144 data = data + [
151145 plugins_file ,
152146 cypress ,
153- cypress_browserify_preprocessor ,
154147 "{cypress_plugin}" .format (cypress_plugin = cypress_plugin ),
155148 "{config_file}" .format (config_file = config_file ),
156149 ] + srcs ,
0 commit comments