From 1cdb90db6380c64289c9380a3e09a862c7d5f79d Mon Sep 17 00:00:00 2001 From: Seth Bergman Date: Sat, 11 Mar 2017 23:21:57 -0600 Subject: [PATCH 1/2] Fixed broken links in README.md - [plugins](https://github.com/babel/babel/blob/master/docs/plugins) => [plugins](https://babeljs.io/docs/plugins/) - [presets](https://github.com/babel/babel/blob/master/docs/plugins/#presets) => [presets](https://babeljs.io/docs/plugins/preset-latest/) --- packages/babel-core/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-core/README.md b/packages/babel-core/README.md index 5b2f4d53d17c..cae8cdb8463f 100644 --- a/packages/babel-core/README.md +++ b/packages/babel-core/README.md @@ -108,8 +108,8 @@ Following is a table of the options you can use: | `moduleRoot` | `(sourceRoot)` | Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions. | | `only` | `null` | A [glob](https://github.com/isaacs/minimatch), regex, or mixed array of both, matching paths to **only** compile. Can also be an array of arrays containing paths to explicitly match. When attempting to compile a non-matching file it's returned verbatim. | | `parserOpts` | `{}` | An object containing the options to be passed down to the babel parser, babylon | -| `plugins` | `[]` | List of [plugins](/docs/plugins/) to load and use. | -| `presets` | `[]` | List of [presets](/docs/plugins/#presets) (a set of plugins) to load and use. | +| `plugins` | `[]` | List of [plugins](https://babeljs.io/docs/plugins/) to load and use. | +| `presets` | `[]` | List of [presets](https://babeljs.io/docs/plugins/preset-latest/) (a set of plugins) to load and use. | | `retainLines` | `false` | Retain line numbers. This will lead to wacky code but is handy for scenarios where you can't use source maps. (**NOTE:** This will not retain the columns) | | `resolveModuleSource` | `null` | Resolve a module source ie. `import "SOURCE";` to a custom value. Called as `resolveModuleSource(source, filename)`. | | `shouldPrintComment` | `null` | An optional callback that controls whether a comment should be output or not. Called as `shouldPrintComment(commentContents)`. **NOTE:** This overrides the `comment` option when used. | From b3a9268d7847577a03c576875e3fe9fe3a43e1f3 Mon Sep 17 00:00:00 2001 From: Seth Bergman Date: Sun, 12 Mar 2017 03:11:15 -0500 Subject: [PATCH 2/2] Corrected the presets link [skip-ci] Changed to: ``` [presets](https://babeljs.io/docs/plugins/#presets) ``` --- packages/babel-core/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-core/README.md b/packages/babel-core/README.md index cae8cdb8463f..ebff1f183737 100644 --- a/packages/babel-core/README.md +++ b/packages/babel-core/README.md @@ -109,7 +109,7 @@ Following is a table of the options you can use: | `only` | `null` | A [glob](https://github.com/isaacs/minimatch), regex, or mixed array of both, matching paths to **only** compile. Can also be an array of arrays containing paths to explicitly match. When attempting to compile a non-matching file it's returned verbatim. | | `parserOpts` | `{}` | An object containing the options to be passed down to the babel parser, babylon | | `plugins` | `[]` | List of [plugins](https://babeljs.io/docs/plugins/) to load and use. | -| `presets` | `[]` | List of [presets](https://babeljs.io/docs/plugins/preset-latest/) (a set of plugins) to load and use. | +| `presets` | `[]` | List of [presets](https://babeljs.io/docs/plugins/#presets) (a set of plugins) to load and use. | | `retainLines` | `false` | Retain line numbers. This will lead to wacky code but is handy for scenarios where you can't use source maps. (**NOTE:** This will not retain the columns) | | `resolveModuleSource` | `null` | Resolve a module source ie. `import "SOURCE";` to a custom value. Called as `resolveModuleSource(source, filename)`. | | `shouldPrintComment` | `null` | An optional callback that controls whether a comment should be output or not. Called as `shouldPrintComment(commentContents)`. **NOTE:** This overrides the `comment` option when used. |