From 76a1c3951214cf40edef304cd5c4735d7ff39299 Mon Sep 17 00:00:00 2001 From: EqualMa Date: Mon, 1 Jul 2019 07:43:11 +0800 Subject: [PATCH] Fix extension name in babel config An extension name should start with a `.` in the `extensions` option of babel config. (As described here: https://babeljs.io/docs/en/babel-core#default-extensions) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 100c6536..5693bb7d 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,8 @@ import { DEFAULT_EXTENSIONS } from '@babel/core'; babel({ extensions: [ ...DEFAULT_EXTENSIONS, - 'ts', - 'tsx' + '.ts', + '.tsx' ] }), ...