1
rollup-plugin-cheap-ts/README.md

31 lines
736 B
Markdown
Raw Permalink Normal View History

2018-11-10 16:08:27 +00:00
# rollup-plugin-cheap-ts
2018-11-10 18:01:18 +00:00
2018-11-10 18:11:23 +00:00
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(),
// ...
],
};
```
2018-11-11 22:47:58 +00:00
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.
2018-11-10 18:11:23 +00:00
2018-11-10 18:01:18 +00:00
## License
2019-06-08 12:58:27 +00:00
[MIT](LICENSE)