Skip to content

Commit c7d8c3d

Browse files
committed
chore(rollup): babel supports .tsx extension
close #15
1 parent e381b3c commit c7d8c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const RollUpConfig = {
4242
useTsconfigDeclarationDir: true,
4343
}),
4444
babel({
45-
extensions: ['js', 'ts'],
45+
extensions: ['js', 'ts', 'tsx'],
4646
babelHelpers: 'runtime',
4747
configFile: './babel.config.js',
4848
exclude: [/core-js/],

0 commit comments

Comments
 (0)