From 378820602c333f53a640740197a94d4a8e6881c9 Mon Sep 17 00:00:00 2001 From: Kamil Mielnik Date: Fri, 21 Feb 2020 08:58:55 +0700 Subject: [PATCH] Enable processing of tsx files with babel in rollup.config.js (#3474) It should fix https://github.com/ianstormtaylor/slate/issues/3471 --- config/rollup/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/rollup/rollup.config.js b/config/rollup/rollup.config.js index 84e4ec532..5a89d3bd3 100644 --- a/config/rollup/rollup.config.js +++ b/config/rollup/rollup.config.js @@ -89,7 +89,7 @@ function configure(pkg, env, target) { babel({ runtimeHelpers: true, include: [`packages/${pkg.name}/src/**`], - extensions: ['.js', '.ts'], + extensions: ['.js', '.ts', '.tsx'], presets: [ '@babel/preset-typescript', [