From e1a978ed64870260bc316216695ec49a4c8731f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 9 Nov 2020 17:34:59 +0100 Subject: [PATCH] master -> main [skip ci] --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- CONTRIBUTING.md | 2 +- README.md | 4 ++-- src/transform.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c405e24b..14fc1bc7 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -**Please Read the [CONTRIBUTING Guidelines](https://github.com/babel/babel-loader/blob/master/CONTRIBUTING.md)** +**Please Read the [CONTRIBUTING Guidelines](https://github.com/babel/babel-loader/blob/main/CONTRIBUTING.md)** *In particular the portion on Commit Message Formatting* **Please check if the PR fulfills these requirements** diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 995a698f..fae13ca9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,6 +12,6 @@ While personally I'm using the [node-style-guide](https://github.com/felixge/node-style-guide), as long you don't do something too weird or fancy, that's probably ok. - If, however, you want to ensure that you're following the node style guide, you can use [JSCS](https://github.com/jscs-dev/node-jscs). The rules are already set on the [.jscsrc](https://github.com/babel/babel-loader/blob/master/.jscsrc) file and there's most likely some [package](http://jscs.info/overview.html#friendly-packages) to your editor already. + If, however, you want to ensure that you're following the node style guide, you can use [JSCS](https://github.com/jscs-dev/node-jscs). The rules are already set on the [.jscsrc](https://github.com/babel/babel-loader/blob/main/.jscsrc) file and there's most likely some [package](http://jscs.info/overview.html#friendly-packages) to your editor already. Documentation, whether in the state of JavaDoc or simple line comments are always welcome. diff --git a/README.md b/README.md index 502d605d..13f0685e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > Check the [7.x branch](https://github.com/babel/babel-loader/tree/7.x) for docs with Babel v6 [![NPM Status](https://img.shields.io/npm/v/babel-loader.svg?style=flat)](https://www.npmjs.com/package/babel-loader) -[![codecov](https://codecov.io/gh/babel/babel-loader/branch/master/graph/badge.svg)](https://codecov.io/gh/babel/babel-loader) +[![codecov](https://codecov.io/gh/babel/babel-loader/branch/main/graph/badge.svg)](https://codecov.io/gh/babel/babel-loader)
@@ -126,7 +126,7 @@ rules: [ #### **NOTE**: transform-runtime & custom polyfills (e.g. Promise library) -Since [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime) includes a polyfill that includes a custom [regenerator-runtime](https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js) and [core-js](https://github.com/zloirock/core-js), the following usual shimming method using `webpack.ProvidePlugin` will not work: +Since [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-runtime) includes a polyfill that includes a custom [regenerator-runtime](https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js) and [core-js](https://github.com/zloirock/core-js), the following usual shimming method using `webpack.ProvidePlugin` will not work: ```javascript // ... diff --git a/src/transform.js b/src/transform.js index 42766853..0219da03 100644 --- a/src/transform.js +++ b/src/transform.js @@ -16,7 +16,7 @@ module.exports = async function (source, options) { // We don't return the full result here because some entries are not // really serializable. For a full list of properties see here: - // https://github.com/babel/babel/blob/master/packages/babel-core/src/transformation/index.js + // https://github.com/babel/babel/blob/main/packages/babel-core/src/transformation/index.js // For discussion on this topic see here: // https://github.com/babel/babel-loader/pull/629 const { ast, code, map, metadata, sourceType } = result;