Skip to content

Commit f765949

Browse files
authored
Update readme and repo templates (#1041)
1 parent b582028 commit f765949

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.github/ISSUE_TEMPLATE.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,12 @@ the [Babel Slack](babeljs.slack.com). Future support requests will be closed.
1010
**I'm submitting a feature request**
1111
**I'm submitting a support request** => Please do not submit support request here, see note at the top of this template.
1212

13-
14-
**Webpack Version:**
15-
1.10.x/2.x
16-
17-
**Babel Core Version**:
18-
6.x
19-
20-
**Babel Loader Version**:
21-
5.4.x/6.2.x
22-
23-
2413
**Please tell us about your environment:**
25-
OSX 10.x / Linux / Windows 10
14+
Webpack Version: 4.x/5.x
15+
Babel Core Version: 7.x
16+
Babel Loader Version: 8.x/9.x
17+
18+
Tip: you can also run `npx envinfo --preset babel` and just paste the result here
2619

2720
**Current behavior:**
2821

.github/PULL_REQUEST_TEMPLATE.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- [ ] Feature
1111
- [ ] Code style update (formatting, local variables)
1212
- [ ] Refactoring (no functional changes, no api changes)
13+
- [ ] Docs update
1314
- [ ] Build related changes
1415
- [ ] CI related changes
1516
- [ ] Other... Please describe:

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<div align="center">
88
<a href="https://github.com/babel/babel">
9-
<img src="https://rawgit.com/babel/logo/master/babel.svg" alt="Babel logo" width="200" height="200">
9+
<img src="https://raw.githubusercontent.com/babel/logo/master/babel.svg" alt="Babel logo" width="200" height="200">
1010
</a>
1111
<a href="https://github.com/webpack/webpack">
1212
<img src="https://webpack.js.org/assets/icon-square-big.svg" alt="webpack logo" width="200" height="200">
@@ -46,8 +46,9 @@ module: {
4646
use: {
4747
loader: 'babel-loader',
4848
options: {
49+
targets: "defaults",
4950
presets: [
50-
['@babel/preset-env', { targets: "defaults" }]
51+
['@babel/preset-env']
5152
]
5253
}
5354
}
@@ -71,10 +72,11 @@ module: {
7172
use: {
7273
loader: 'babel-loader',
7374
options: {
75+
targets: "defaults",
7476
presets: [
75-
['@babel/preset-env', { targets: "defaults" }]
77+
['@babel/preset-env']
7678
],
77-
plugins: ['@babel/plugin-proposal-class-properties']
79+
plugins: ['@babel/plugin-proposal-decorators', { version: "2023-11" }]
7880
}
7981
}
8082
}
@@ -94,7 +96,7 @@ This loader also supports the following loader-specific option:
9496

9597
* `customize`: Default `null`. The path of a module that exports a `custom` callback [like the one that you'd pass to `.custom()`](#customized-loader). Since you already have to make a new file to use this, it is recommended that you instead use `.custom` to create a wrapper loader. Only use this if you _must_ continue using `babel-loader` directly, but still want to customize.
9698

97-
* `metadataSubscribers`: Default `[]`. Takes an array of context function names. E.g. if you passed ['myMetadataPlugin'], you'd assign a subscriber function to `context.myMetadataPlugin` within your webpack plugin's hooks & that function will be called with `metadata`.
99+
* `metadataSubscribers`: Default `[]`. Takes an array of context function names. E.g. if you passed ['myMetadataPlugin'], you'd assign a subscriber function to `context.myMetadataPlugin` within your webpack plugin's hooks & that function will be called with `metadata`. See [`./test/metadata.test.js`](./test/metadata.test.js) for an example.
98100

99101
## Troubleshooting
100102

@@ -301,10 +303,6 @@ For example, to change the environment targets passed to `@babel/preset-env` bas
301303

302304
module.exports = api => {
303305
return {
304-
plugins: [
305-
"@babel/plugin-proposal-nullish-coalescing-operator",
306-
"@babel/plugin-proposal-optional-chaining"
307-
],
308306
presets: [
309307
[
310308
"@babel/preset-env",

0 commit comments

Comments
 (0)