Skip to content

Commit

Permalink
chore(rollup): babel supports .tsx extension
Browse files Browse the repository at this point in the history
close #15
  • Loading branch information
John60676 committed Dec 14, 2020
1 parent e381b3c commit c7d8c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const RollUpConfig = {
useTsconfigDeclarationDir: true,
}),
babel({
extensions: ['js', 'ts'],
extensions: ['js', 'ts', 'tsx'],
babelHelpers: 'runtime',
configFile: './babel.config.js',
exclude: [/core-js/],
Expand Down

0 comments on commit c7d8c3d

Please sign in to comment.