diff --git a/README.md b/README.md index 5a8746d..3076444 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ - :zap: Built in Minification and Gzip Size Tracking - :cyclone: Built in development server for quick prototyping. - :confetti_ball: Supports **`react`**, **`styled-components`** and **`emotion`** out of the box. +- :crystal_ball: Supports [typescript transformers](https://github.com/cevek/ttypescript) when `usets` is enabled. ### :muscle: Powered By diff --git a/package.json b/package.json index 7e61664..3e10c87 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "terser": "5.10.0", "typescript": "^4.5.5", "xo": "0.47.0", - "xo-quick": "0.0.9" + "xo-quick": "0.0.9", + "ttypescript": "1.5.13" } -} +} \ No newline at end of file diff --git a/src/plugins.js b/src/plugins.js index eb7ecf6..8834fec 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -27,7 +27,9 @@ const plugins = (command, pkg, options) => { extensions, }), commonjs({ extensions, include: /\/node_modules\// }), - usets && require('@rollup/plugin-typescript')(), + usets && require('@rollup/plugin-typescript')({ + typescript: require("ttypescript") + }), babel({ ...babelDefaults, exclude: 'node_modules/**',