From 476432d3d70c6b52dde52963a20c468734eb1636 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Tue, 14 Feb 2017 15:12:40 +0000 Subject: [PATCH 1/2] Remove Notes section from babelrc documentation We no longer rewrite paths. Mentioning future uses seems unnecessary. What's left is implicitly covered elsewhere. --- docs/recipes/babelrc.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/recipes/babelrc.md b/docs/recipes/babelrc.md index ff6cd4978..07e7b01a1 100644 --- a/docs/recipes/babelrc.md +++ b/docs/recipes/babelrc.md @@ -10,7 +10,6 @@ There are multiple options for configuring how AVA transpiles your tests using B - [Transpiling tests and sources the same way](#transpiling-tests-and-sources-the-same-way) - [Extend your source transpilation configuration](#extend-your-source-transpilation-configuration) - [Extend an alternate config file (i.e. not `.babelrc`)](#extend-an-alternate-config-file) - - [Notes](#notes) ## AVA's default transpiler behavior @@ -115,13 +114,3 @@ If, for some reason, your Babel config is not specified in one of the default lo ``` The above uses `babel-test-config.json` as the transpilition config for *sources*, and as the base config for *tests*. For *tests*, it extends that base config with the custom plugins and presets specified. - -## Notes - -AVA *always* adds a few custom Babel plugins when transpiling your plugins. They serve a variety of functions: - - * Enable `power-assert` support. - * Rewrite require paths internal AVA dependencies like `babel-runtime` (important if you are still using `npm@2`). - * [`ava-throws-helper`](https://github.com/avajs/babel-plugin-ava-throws-helper) helps AVA [detect and report](https://github.com/avajs/ava/pull/742) improper use of the `t.throws` assertion. - * Generate test metadata to determine which files should be run first (*future*). - * Static analysis of dependencies for precompilation (*future*). From 9fe5d080c791863817967feedef9106db24de016 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Tue, 14 Feb 2017 15:12:59 +0000 Subject: [PATCH 2/2] Fix typo in babelrc docs --- docs/recipes/babelrc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/recipes/babelrc.md b/docs/recipes/babelrc.md index 07e7b01a1..39f42c053 100644 --- a/docs/recipes/babelrc.md +++ b/docs/recipes/babelrc.md @@ -113,4 +113,4 @@ If, for some reason, your Babel config is not specified in one of the default lo } ``` -The above uses `babel-test-config.json` as the transpilition config for *sources*, and as the base config for *tests*. For *tests*, it extends that base config with the custom plugins and presets specified. +The above uses `babel-test-config.json` as the transpilation config for *sources*, and as the base config for *tests*. For *tests*, it extends that base config with the custom plugins and presets specified.