From 9388b337a1853698141b7291f8c067406994c97c Mon Sep 17 00:00:00 2001 From: Huyue Date: Fri, 17 Sep 2021 15:24:41 +0800 Subject: [PATCH] Update intro.md --- docs/intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro.md b/docs/intro.md index 488a87b..880cf08 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -242,7 +242,7 @@ import 'core-js'; import 'regenerator-runtime/runtime'; // 或者 require('core-js'); -require('regenerator-runtime/runtime); +require('regenerator-runtime/runtime'); ``` Babel 默认不转码的 API 非常多,详细清单可以查看`babel-plugin-transform-runtime`模块的[definitions.js](https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-runtime/src/runtime-corejs3-definitions.js)文件。