From c650a403ffda7762a51afacca0917d4c28502705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 1 Feb 2022 17:36:20 +0100 Subject: [PATCH] Update docs/register.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Huáng Jùnliàng --- docs/register.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/register.md b/docs/register.md index b53a9dc150..39c560507a 100644 --- a/docs/register.md +++ b/docs/register.md @@ -150,7 +150,7 @@ You can also test the new experimental implementation that will be enabled by de require("@babel/register/experimental-worker"); ``` -It internally runs Babel asynchronously, so it's compatible with [`.mjs` configuration files](https://babeljs.io/docs/en/config-files#configuration-file-types). You can already use it as a replacement of `@babel/register` with a few caveats: +It internally runs Babel asynchronously, so it's compatible with [`.mjs` configuration files](config-files.md#configuration-file-types). You can already use it as a replacement of `@babel/register` with a few caveats: - If you programmatically specify `@babel/register` options (using `require("@babel/register")({ /* ... options */ })`), you must make sure that they are serializable. This means that you cannot pass plugin functions defined inline, but you must move them to a separate `./my-plugin.js` file or to a `babel.config.js` file. - The new implementation is still experimental: it _should_ have the same features as the existing one, but there may be some new bugs and regressions.