swc/.github/ISSUE_TEMPLATE/bug_report.yml
2024-05-07 10:11:55 +09:00

79 lines
2.6 KiB
YAML

name: Bug Report
description: Use this when swc breaks something
labels: C-bug
body:
- type: textarea
id: description
attributes:
label: Describe the bug
description: |
If swc crashed or panicked, you can gain error message by running `swc --sync <input.js>`.
Also, you can get backtrace by invoking swc by setting an environment variable `SWC_DEBUG` to `1`.
Note that if you do not provide a minimal reproduction, the issue will be closed because the team cannot work on it.
Please read https://antfu.me/posts/why-reproductions-are-required for details.
validations:
required: true
- type: textarea
id: code
attributes:
label: Input code
render: typescript
- type: textarea
id: config
attributes:
label: Config
description: Paste your `.swcrc` file here.
render: json
- type: input
id: repro-link
validations:
required: true
attributes:
label: Playground link (or link to the minimal reproduction)
description: "You can use [swc playground](https://play.swc.rs/) to create a reproduction link, then paste the link here. If your link is invalid, the issue will be closed automatically. Allowed domains are github.com,gist.github.com,play.swc.rs,evanw.github.io,lightningcss.dev,play.rust-lang.org,stackblitz.com"
- type: textarea
id: swc-info
attributes:
label: SWC Info output
description: Please run `npx -y swc-info@latest` and paste the output here.
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expect to happen.
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: A clear and concise description of actual behavior.
validations:
required: false
- type: input
id: version
attributes:
label: Version
validations:
required: true
- type: textarea
id: addition
attributes:
label: Additional context
placeholder: Add any other context about the problem here.
- type: markdown
attributes:
value: |
<!--
Thanks for taking the time to fill out this bug report!
Please do not remove this, or your issue will be closed.
-->
---
_This is message for readers, not the author of ths issue._
Please read [no +1](https://github.com/golang/go/wiki/NoPlusOne) before lefting a comment, or your comment will be deleted and you will be blocked.