Skip to content

Commit

Permalink
Include @rollup/plugin-typescript for typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnadeluy committed Jun 6, 2024
1 parent 241c531 commit 903e52d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import replace from '@rollup/plugin-replace';
import scss from 'rollup-plugin-scss';
import svgr from '@svgr/rollup';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';

const NODE_ENV = process.env.ENV || 'development';

Expand Down Expand Up @@ -38,5 +39,8 @@ export default [{
extensions: ['js', '.jsx', '.tsx', '.ts'],
}),
terser(),
typescript({
jsx: 'React'
})
],
}];

0 comments on commit 903e52d

Please sign in to comment.