-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
bug_report.yml
108 lines (99 loc) 路 3.27 KB
/
bug_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: "馃悰 Bug Report"
description: "If something isn't working as expected 馃."
title: "[Bug]: "
labels: ["i: needs triage"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.
- type: checkboxes
attributes:
label: ""
options:
- label: Would you like to work on a fix?
- type: dropdown
attributes:
label: How are you using Babel?
options:
- babel-loader (webpack)
- "@rollup/plugin-babel"
- "@babel/eslint-parser"
- "@babel/cli"
- "@babel/register or @babel/node"
- Programmatic API (`babel.transform`, `babel.parse`)
- Other (Next.js, Gatsby, vue-cli, ...)
validations:
required: true
- type: textarea
attributes:
label: Input code
description: |
You must write here the minimal input code necessary to reproduce the bug.
Even better, you can share a link to the Babel [REPL](https://babel.dev/repl):
this will make it easier for us to reproduce the issue, and it may help fixing
the bug sooner.
If it's not possible to reproduce the bug with a single file, a GitHub Repository
is also ok.
placeholder: |
```js
var your => (code) => here;
```
validations:
required: true
- type: dropdown
attributes:
label: Configuration file name
description: |
**NOTE**: If it's possible that Babel is not correctly loading your config, it's probably because you are using
`.babelrc`/`package.json` instead of `babel.config.json`.
multiple: true
options:
- babel.config.json
- babel.config.js
- babel.config.cjs
- babel.config.mjs
- .babelrc.json
- .babelrc.js
- .babelrc.cjs
- .babelrc.mjs
- .babelrc
- package.json
- type: textarea
attributes:
label: Configuration
description: |
**Tip:** You can also run Babel with the environment variable SHOW_CONFIG_FOR=your_file_path to print all configs associated with a path.
See https://babeljs.io/docs/en/configuration#print-effective-configs for more information
placeholder: |
```json
{
"your": { "config": "here" }
}
```
- type: textarea
attributes:
label: Current and expected behavior
description: A clear and concise description of what Babel is doing and what you would expect.
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
**Tip:** you can run `npx envinfo --preset babel` and paste the result below
placeholder: |
- Babel version(s): [e.g. v7.12.0]
- Node: [e.g. Node 15]
- npm/Yarn version: [e.g. npm 7/Yarn 2.3]
- OS: [e.g. macOS 10.15.4, Windows 10]
- Monorepo: [e.g. yes/no/Lerna]
validations:
required: true
- type: textarea
attributes:
label: Possible solution
description: "If you have suggestions on a fix for the bug."
- type: textarea
attributes:
label: Additional context
description: "Add any other context about the problem here. Or a screenshot if applicable."