You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rollup-plugin-cheap-ts/README.md

31 lines
736 B
Markdown

4 years ago
# rollup-plugin-cheap-ts
4 years ago
4 years ago
A hacky lightweight Rollup plugin for transpiling and bundling libraries written in TypeScript.
## Installation
This is not published to npm. Install from Git tags.
## Usage
Include the plugin in your `rollup.config.js`:
```javascript
import cheapTS from 'rollup-plugin-cheap-ts';
export default {
// ...
plugins: [
// ...
cheapTS(),
// ...
],
};
```
4 years ago
You must have a `tsconfig.json` in the same directory as your `rollup.config.js`. This must specify a `"compilerOptions"."target"` of at least `"ES6"`. There are a few other options that must not be specified. (The plugin will check for these.) All extensionless imports from `.ts` files must refer to `.ts` files.
4 years ago
4 years ago
## License
[MIT](LICENSE)