Skip to content

Commit 6174b08

Browse files
committed
cleanup: args.add converts file to file.path automatically
1 parent 4558f6e commit 6174b08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swc/private/swc.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _impl(ctx):
227227

228228
src_args = ctx.actions.args()
229229
if ctx.attr.swcrc:
230-
src_args.add("--config-file", ctx.file.swcrc.path)
230+
src_args.add("--config-file", ctx.file.swcrc)
231231
inputs.append(ctx.file.swcrc)
232232

233233
_swc_action(
@@ -269,10 +269,10 @@ def _impl(ctx):
269269
inputs.extend(plugin_cache)
270270

271271
if ctx.attr.swcrc:
272-
src_args.add("--config-file", ctx.file.swcrc.path)
272+
src_args.add("--config-file", ctx.file.swcrc)
273273
inputs.append(ctx.file.swcrc)
274274

275-
src_args.add("--out-file", js_out.path)
275+
src_args.add("--out-file", js_out)
276276

277277
output_sources.extend(outputs)
278278

0 commit comments

Comments
 (0)